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 8, 2024. It is now read-only.
Hi, and sorry for the API blueprint minimum example, I'd like to use a predefined type definition in a One Of definition, e.g.
FORMAT: 1A
# Data Structures
## Foo
+ foo
+ bar
# Group Foo
## GET /api/foo
+ Response 200 (application/json)
+ Attributes
+ One Of
+ baz
+ Properties
+ Include Foo
However, when I do so and run the result through aglio I get this error:
12:40 $ aglio -i foo.apib -o foo.html
>> { code: 4,
message: 'Error parsing input: mixin base type should be the same as parent base type. objects should contain object mixins. arrays should contain array mixins',
location: [],
input: 'FORMAT: 1A\n\n# Data Structures\n\n## Foo\n\n+ foo\n+ bar\n\n# Group Foo\n\n## GET /api/foo\n\n+ Response 200 (application/json)\n\n + Attributes\n\n + One Of\n + baz\n + Properties\n + Include Foo\n' }
Is there any way around this so I can re-use existing type definitions like this?
The text was updated successfully, but these errors were encountered:
Hi, and sorry for the API blueprint minimum example, I'd like to use a predefined type definition in a One Of definition, e.g.
However, when I do so and run the result through
aglio
I get this error:Is there any way around this so I can re-use existing type definitions like this?
The text was updated successfully, but these errors were encountered: