-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
Hi,
With newest umbraco forms openapi schema, I cannot generate schema:
const openApiSchema = await response.json();
const formTypes = await openApiToGraphql(openApiSchema);
Attaching the json from response used above. umbraco_forms_api_openapi.zip
Seems the issue is that enums inside "oneOf" are failing:
"fieldIndicationType": {
"description": "Gets or sets the form's field mandatory or optional field indication type.",
"oneOf": [
{
"$ref": "#/components/schemas/FormFieldIndication"
}
]
},
...
"FormFieldIndication": {
"type": "integer",
"description": "Enumeration for field indications.",
"x-enumNames": [
"NoIndicator",
"MarkMandatoryFields",
"MarkOptionalFields"
],
"enum": [
0,
1,
2
]
},
There is an exception in createOrReuseEnum()
, enum
is undefined (expanding schema):
Is that so that enum cannot be part of complex type?
mattduggan, peterp-brighte and petrkrejcik
Metadata
Metadata
Assignees
Labels
No labels