Closed mwxxhdb closed 4 years ago
Incorrect YAML
EnumObject: type: string enum: - NULL - ITEM1 - ITEM2
Correct YAML
EnumObject: type: string enum: - 'NULL' - ITEM1 - ITEM2
Issue: There are warnings if using the incorrect YAML in SwaggerHub, but swagger-cli said the document is valid.
Warnings from SwaggerHub: enum value should conform to its schema's type
type
Expect result: Same warning as SwaggerHub.
This issue moved to swagger-parser project #144
Incorrect YAML
Correct YAML
Issue: There are warnings if using the incorrect YAML in SwaggerHub, but swagger-cli said the document is valid.
Warnings from SwaggerHub: enum value should conform to its schema's
type
Expect result: Same warning as SwaggerHub.