Response object property named "entries" causes editor.swagger.io to error.
editor.swagger.io fails to render if the spec file contains a response with an object property named "entries".
This spec DOES NOT render:
openapi: 3.0.0
info:
title: test
version: 1.0.0
paths:
'/test':
get:
summary: test
responses:
'200':
description: test
content:
application/json:
schema:
type: object
properties:
entries:
type: string
The editor shows this error message:
Unable to render this definition
The provided definition does not specify a valid version field.
Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).
This spec DOES render. The only difference is the name of the property was changed from "entries" to "entries1":
openapi: 3.0.0
info:
title: test
version: 1.0.0
paths:
'/test':
get:
summary: test
responses:
'200':
description: test
content:
application/json:
schema:
type: object
properties:
entries1:
type: string