ELANA
2 years agoNew Contributor
yaml resolved
I try to export API- by use download API as "YAML Resolved" the file that SWAGGERHUB generate was without nullable: true in object. how can i fix it? example:
To ensure that your Swagger definition includes "nullable: true" for objects when exporting it as "YAML Resolved" from SwaggerHub, you can follow these steps:
1. Open your Swagger definition in SwaggerHub.
2. Locate the objects or properties where you want to set "nullable: true."
3. Edit the Swagger definition, and for each object or property, explicitly set "nullable: true." For example:
```yaml
properties:
someProperty:
type: string
nullable: true
```
4. Save your changes.
5. Export the API as "YAML Resolved" again.
By manually setting "nullable: true" for the objects or properties in your Swagger definition, you ensure that it is included in the exported YAML file as you intended. This should address the issue you described.