Skip to content

Commit

Permalink
version bump for 1.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
thedumbterminal committed Dec 3, 2018
1 parent 3417004 commit a6a11de
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.4.0 (03/12/2018)

* Array elements now supported. (pdanpdan)

## v1.3.1 (18/04/2018)

* Allows object properties to be omitted.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsonschema-avro",
"version": "1.3.1",
"version": "1.4.0",
"description": "Convert JSON-schema into avro schema",
"main": "src/index.js",
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions test/samples/array/expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"doc": "Array example",
"fields": [
{
"doc": "example array",
"name": "list",
"type": {
"items": {
"doc": "a string",
"name": "list",
"type": "string"
},
"type": "array"
}
}
],
"name": "main",
"namespace": "http.yourdomain.com.schemas.myschema.json",
"type": "record"
}
15 changes: 15 additions & 0 deletions test/samples/array/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "http://yourdomain.com/schemas/myschema.json",
"description": "Array example",
"type": "object",
"properties": {
"list": {
"description": "example array",
"type": "array",
"items": {
"description": "a string",
"type": "string"
}
}
}
}

0 comments on commit a6a11de

Please sign in to comment.