allOf not working properly within array items
See original GitHub issueThis works correctly:
responses:
'200':
description: OK
schema:
type: object
properties:
data:
type: array
items:
$ref: 'someDefinition.yaml'
This initially loads fine, but gives an error (Can’t load schema at …) when trying to expand the data
element in the response schema:
responses:
'200':
description: OK
schema:
type: object
properties:
data:
type: array
items:
allOf:
- $ref: 'someDefinition.yaml
- xml
name: foo
The schema example on the right side seems to render correctly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
allOf not working properly within array items · Issue #136
The schema example on the right side seems to render correctly. The text was updated successfully, but these errors were encountered: ...
Read more >render issues when extending model via allOf
When extending a base model via the allOf operator, 2 bugs are apparent: 1. In the event of an allOf operator referencing another...
Read more >Why is my use of JSON Schema `allOf` keyword not ...
The behaviour of duplicate keys in JSON is undefined. Often the way it's handled is just to take the last occurrence of each...
Read more >Details of the policy definition structure - Azure
Describes how policy definitions are used to establish conventions for Azure resources in your organization.
Read more >Understanding JSON Schema 2020-12 documentation
All of these keywords must be set to an array, where each item is a schema. In addition, there is: not: (NOT) Must...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Works like a charm! Thanks!! 👍
@joostfarla new version
v1.5.2
has been just released. Let me know if it the issue is solved for you know