JSON Schema in swagger response #2823
Unanswered
rupinder10
asked this question in
Q&A
Replies: 2 comments 5 replies
-
The error is about this property: getDollar RefField string which is about this property in the spec "get$ref": {
"type": "string"
}, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. Removing this property removes the error. Is there a way to handle properties like this ? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an API that returns a body that corresponds to a JSON Schema, The JSON schema structure is included in the API spec file. But when I try to generate the client I get the following error:
name field ArraySchema
package field models
creating generated file "array_schema.go" in "models" as definition
executed template asset:model
source formatting failed on template-generated source ("models\array_schema.go" for definition). Check that your template produces valid code
unformatted generated source "array_schema.go" has been dumped for template debugging purposes. DO NOT build on this source!
source formatting on generated source "definition" failed: models\array_schema.go:118:34: expected ';', found string (and 10 more errors)
The spec file is attached. Can anybody point me what its complaining about ? The error message is very cryptic,
ServiceManagementBody.zip
Beta Was this translation helpful? Give feedback.
All reactions