Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unsupported 'format' value 'uuid' in OAS-Validaion

Getting deployment error for OAS-Validation policy saying that Unsupported 'format' value 'uuid

Teja_0-1641538312609.png

openapispec code :

 

parameters:
        - in: header
          name: req-id
          schema:
            type: string
            format: uuid
          required: true

 

 This error i'm getting only in hybrid org but not in edge

Can anyone help me here. Thanks in advance

 

0 4 762
4 REPLIES 4

Former Community Member
Not applicable

Additional formats like uuid are not part of the official OAS 3.0.x spec (Reference). Here is the quote "Formats such as "email""uuid", and so on, MAY be used even though undefined by this specification." 

This is the reason for the error. There is an unofficial CLI based tool that is capable of handling such formats and generating proxies. 

Also, Teja, 

We'll look into changing Apigee hybrid to relax the validation of formats. ref: b/213608497

Hi @dchiesa1 ,
Could you please give us an update of the referred enhancements b/213608497?
Thx,

Marcello

Hi @MarciSoos

The bug you referenced has been fixed, for more than 1 year. So if you use an OpenAPI Spec with UUID format, you should not see the problem of

Getting deployment error for OAS-Validation policy saying that Unsupported 'format' value 'uuid

Are you seeing a problem?