You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
When I try to bundle a set of schemas in a path using "anyOf" or "oneOf", the schemas are invalid. Tried adding a unique name for each of the schemas and adding/removing indentation, however this still didn't allow this usage to be bundled in to the flat file. Instead I have re-structured the output bundled file manually and move the schemas under components: schemas: and then manually create the $ref's for each of the schemas. I'm not sure if I added something to the schema file at the beginning, if this would then render correctly perhaps?
Current output when bundled:
paths:
/workflow/request:
post:
summary: Workflow Triggerdescription: Triggers one of the many workflows.requestBody:
content:
application/json:
schema:
anyOf:
- retrieve:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operation
- transfer:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operation
- list:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operation
- find:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operation
- copy:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operationresponses:
'200':
description: OK
Working bundle:
/workflow/request:
post:
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: "#/components/schemas/retrieve"
- $ref: "#/components/schemas/delete"
- $ref: "#/components/schemas/create"
- $ref: "#/components/schemas/transfer"
- $ref: "#/components/schemas/upload"
- $ref: "#/components/schemas/list"
- $ref: "#/components/schemas/find"
- $ref: "#/components/schemas/difference"
- $ref: "#/components/schemas/copy"components:
schemas:
retrieve:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operationtransfer:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operationlist:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operationfind:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operationcopy:
type: objectproperties:
id:
type: stringdescription: Associated asset ID used for tracking or filenames.operation:
type: stringdescription: Used to look up variables within the sub workflow.required:
- id
- operation
The text was updated successfully, but these errors were encountered:
When I try to bundle a set of schemas in a path using "anyOf" or "oneOf", the schemas are invalid. Tried adding a unique name for each of the schemas and adding/removing indentation, however this still didn't allow this usage to be bundled in to the flat file. Instead I have re-structured the output bundled file manually and move the schemas under
components: schemas:
and then manually create the $ref's for each of the schemas. I'm not sure if I added something to the schema file at the beginning, if this would then render correctly perhaps?Current output when bundled:
Working bundle:
The text was updated successfully, but these errors were encountered: