Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Open API Spec does not process "format" as an open string-valued property #13

Closed
kurtkanaskie opened this issue Nov 30, 2021 · 1 comment
Assignees

Comments

@kurtkanaskie
Copy link

As per the OAS: https://spec.openapis.org/oas/v3.0.0#data-types

... the format property is an open string-valued property, and can have any value. Formats such as "email", "uuid", and so on, MAY be used even though undefined by this specification.

This entry in an OAS does not work:

uuid:
  description: Test uuid
  type: string
  format: uuid

Error:

$ apigeecli apis create -f pingstatus-v1-x.yaml --name demo --add-cors --org apigeex-mint-kurt
Error: invalid components: unsupported 'format' value "uuid"
@srinandan
Copy link
Owner

This is unfortunately an issue with the underlying library.

See issue 1 and issue 2

Let me investigate adding the solution described in issue 1. But please be aware, the Apigee control plane does not support this flag. So importing via apigeecl will work, but not directly via Apigee APIs.

@srinandan srinandan self-assigned this Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants