-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In OpenAPI 3.1.1 const was adopted. Currently these values are not shown in the plugins.
Not sure if you want to call this a bug or a feature. Either way the supported const values are missing :)
Expected behavior
const values are displayed
Current behavior
const values are not displayed
Possible solution
Detect schema.const and output it like we do for Example or Default.
It would need to happen for primitive (E.g. string) and complex types (E.g. allOf, oneOf, etc.).
Steps to reproduce
type:
const: orders
type: string
title: Orders description: The status of the Order
type: string
oneOf:
- const: incomplete
type: string
title: Incomplete
description: Incomplete order
- const: pending
type: string
title: Pending
description: Pending order
- const: complete
type: string
title: Complete
description: Complete orderScreenshots
Context
Your Environment
- Version used:
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
- Operating System and version (desktop or mobile):
- Link to your project:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working