-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this Serverless AWS Documentation reference syntax supported? #188
Comments
Unfortunately there isn't an overlap as yet. Even the OAS syntax of i think it's going to take me a bit of a rewrite and upgrade to OpenAPI 3.1.0 generation to get models in a really good resusable space. |
just to confirm, does this not support splitting models into multiple files at all? |
it does, but maybe not how you like. Take this for example:
Then within
and in
it will pull together the schemas and generate:
|
Hmm actually might work for my edge-case, given I can use a relative path there instead of absolute |
If you read the Serverless AWS Documentation or any of its more maintained forks, it mentions that you can reference a model using the following syntax.
I keep getting
-attribute components.schemas.Customer.{{model: Address}} is not of type schema
Is the syntax
$ref: "{{model: Address}}"
supported in this plugin?I notice that the example petstore OAS uses the syntax:
$ref: '#/components/schemas/ProductsProduct'
Should I move my references so they look more like this?
The problem is the models in my
custom.documentation
block of myserverless.yml
stack are used for the Serverless AWS Documentation plugin, however if I use this plugin on the same serverless.yml, I keep getting invalid OAS specification (because the models contains these {{ }} type references.The text was updated successfully, but these errors were encountered: