Open jjjasper opened 4 years ago
When bundling a spec that has references to examples in json files some numbers that should appear as string are written as number.
fi. the spec
properties: branchCode: maxLength: 11 type: string description: 'Code to identify a branch, e.g. ABA or BIC'
my example json
{ "branchCode": "0123456789" }
the example in the bundled yaml
brancheCode: 0123456789
Current workaround, bundle as json, convert to yaml using yamljs v0.3.0
yamljs
swagger-cli bundle -t json -o openapi.json json2yaml -s -d 99 openapi.json
When bundling a spec that has references to examples in json files some numbers that should appear as string are written as number.
fi. the spec
my example json
the example in the bundled yaml
Current workaround, bundle as json, convert to yaml using
yamljs
v0.3.0