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
Using Enums for attribute values which shall be open for custom extensions, or later minor releases of the AAS specs, cause errors in older implementations.
Example: https://app.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.1#/components/schemas/ServiceDescription contains an enum for profiles, which means that the value space is closed. If a company/ecosystem wants to add an own profile (at their own risk that it will not be an official IDTA-backed profile), a client implementation can not parse this.
The example below violates the OpenAPI declaration:
Do not use enums wherever we are not 100% sure that the value items are all known. Use a less restrictive (ergo: extendable) type when this is not the case.
What?
Using Enums for attribute values which shall be open for custom extensions, or later minor releases of the AAS specs, cause errors in older implementations.
Example: https://app.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.1#/components/schemas/ServiceDescription contains an enum for
profiles
, which means that the value space is closed. If a company/ecosystem wants to add an own profile (at their own risk that it will not be an official IDTA-backed profile), a client implementation can not parse this.The example below violates the OpenAPI declaration:
How?
Do not use enums wherever we are not 100% sure that the value items are all known. Use a less restrictive (ergo: extendable) type when this is not the case.
Current structure:
Possible approach (haven't tested it yet):
Source: OAI/OpenAPI-Specification#1552 (comment)
The text was updated successfully, but these errors were encountered: