You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Property-level title keyword is silently dropped for OpenAPI 3.1 schemas #11053
openapi: 3.1.0info:
title: Reproversion: "1.0"paths:
/example:
post:
requestBody:
required: truecontent:
application/json:
schema:
type: objecttitle: Exampleproperties:
plainField:
type: integerformat: int32title: Only renders on OAS 3.0description: Renders always.titledField:
type: integerformat: int32title: Only renders on OAS 3.0description: Renders always.required:
- plainField
- titledFieldresponses:
'200':
description: OK
Describe the bug you're encountering
When a property inside an object schema has its own title keyword set, Swagger UI never renders it anywhere when the document is OpenAPI 3.1. The exact same schema, served as OpenAPI 3.0, renders the titles correctly.
To reproduce...
Steps to reproduce the behavior:
Go to 'editor.swagger.io'
Paste the example schema
Compare title rendering (and lack thereof) between OAS 3.0 and 3.1
Expected behavior
A property's own title keyword should be displayed somewhere (as it is in the OAS 3.0).
Additional context or thoughts
This is distinct from the known $ref-sibling-keyword rendering (e.g., #9540) that changed in 3.1 due to stricter JSON schema adherence. There are zero $refs in the example, as the issue is entirely with property title rendering and has nothing to do with dereferencing.
Possible cause, looking at the source: KeywordTitle template has title={name}, which Properties.jsx always fills in with name={propertyName}, so that in Title.jsxrenderedTitle = title || fn.getTitle(schema) always renders only the property name and never even looks at what the schema has.
Activity
martins-spektors commentedon Sep 17, 2026
Possible cause, looking at the source: KeywordTitle template has
title={name}, which Properties.jsx always fills in withname={propertyName}, so that in Title.jsxrenderedTitle = title || fn.getTitle(schema)always renders only the property name and never even looks at what the schema has.fix(json-schema-2020-12): compare property titles case-insensitively
fix(json-schema-2020-12): render property schema title
fix(json-schema-2020-12): render property schema title