Skip to content
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

Some API's whose schema has 'allOf' are not working. #2301

Open
sam75 opened this issue Jun 2, 2020 · 1 comment
Open

Some API's whose schema has 'allOf' are not working. #2301

sam75 opened this issue Jun 2, 2020 · 1 comment
Labels
model Related to swagger generate model command needs more info

Comments

@sam75
Copy link

sam75 commented Jun 2, 2020

Problem statement

In the spec, https://gist.github.com/sam75/8a7e721db5c6c58180497e65cdd22294, the GET API's for the path "/northstar/configuration" does not work. If we notice the corresponding configuration_schema.go, it was observed that it had "allOf" composition. It looks like json serialization issue.

Could you guide as to how to resolve the issue? Do let me know if any other auto-generated code is needed for inspection.

Swagger specification

swagger.yaml location: https://gist.github.com/sam75/8a7e721db5c6c58180497e65cdd22294

model (configuration_schema.go) location: https://gist.github.com/sam75/e50ea4f1af913e8f5c05084d83a0556f

Environment

swagger version: 0.23.0
go version: 1.11
OS:

@fredbi
Copy link
Contributor

fredbi commented Jun 29, 2020

@sam75 your spec generates and builds fine.
Could you provide a description of the error you are encountering? (like a curl session demonstrating your marshaling issue?)

@fredbi fredbi added model Related to swagger generate model command needs more info labels Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model Related to swagger generate model command needs more info
Projects
None yet
Development

No branches or pull requests

2 participants