Should this be changed to loop over all items in allOf?
Test case:
components:
schemas:
ThingWithId:
allOf:
- type: object
required:
- id
properties:
id:
type: string
format: uuid
description: I am a UUID
- $ref: '#/components/schemas/ThingWithoutId'
ThingWithoutId:
required:
- status
properties:
status:
type: boolean
description: Some random status thing
Offending line is here: https://github.com/JoeScho/oas2joi/blob/master/index.js#L27
Should this be changed to loop over all items in
allOf
?Test case: