Skip to content

Commit

Permalink
feat: Allow custom attributes in properties
Browse files Browse the repository at this point in the history
Testfix after merging master

re adobe#151
  • Loading branch information
Roman Kunz committed Jul 29, 2019
1 parent b18651e commit 53073b4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
6 changes: 6 additions & 0 deletions examples/docs/complex.schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ All items must be of the type:
- is optional
- type: `object`
- defined in this schema
- version: 1.0.0
- testProperty: test

### refnestedobj Type

Expand All @@ -196,6 +198,8 @@ All items must be of the type:

- is optional
- type: `object`
- version: 1.0.0
- testProperty: test

##### refobj Type

Expand All @@ -211,6 +215,8 @@ All items must be of the type:

- is optional
- type: Simple
- version: 1.0.0
- testProperty: test

##### foo Type

Expand Down
10 changes: 8 additions & 2 deletions examples/generated-schemas/complex.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@
"properties": {
"refobj": {
"type": "object",
"version": "1.0.0",
"testProperty": "test",
"properties": {
"foo": {
"$ref": "https://example.com/schemas/simple"
"$ref": "https://example.com/schemas/simple",
"version": "1.0.0",
"testProperty": "test"
}
}
}
}
},
"version": "1.0.0",
"testProperty": "test"
},
"or": {
"description": "String or number…",
Expand Down
10 changes: 8 additions & 2 deletions examples/schemas/complex.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@
"properties": {
"refobj": {
"type": "object",
"version": "1.0.0",
"testProperty": "test",
"properties": {
"foo": {
"$ref": "https://example.com/schemas/simple"
"$ref": "https://example.com/schemas/simple",
"version": "1.0.0",
"testProperty": "test"
}
}
}
}
},
"version": "1.0.0",
"testProperty": "test"
},
"or": {
"description": "String or number…",
Expand Down
6 changes: 6 additions & 0 deletions spec/examples/complex.schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ All items must be of the type:
- is optional
- type: `object`
- defined in this schema
- version: 1.0.0
- testProperty: test

### refnestedobj Type

Expand All @@ -196,6 +198,8 @@ All items must be of the type:

- is optional
- type: `object`
- version: 1.0.0
- testProperty: test

##### refobj Type

Expand All @@ -211,6 +215,8 @@ All items must be of the type:

- is optional
- type: Simple
- version: 1.0.0
- testProperty: test

##### foo Type

Expand Down

0 comments on commit 53073b4

Please sign in to comment.