sailpoint-oss / api-schema-validator

Validates API response schemas with an OpenAPI specification
MIT License
1 stars 2 forks source link

Getting data validation error on schedule expiration field #3

Closed jon-lees-sp closed 1 year ago

jon-lees-sp commented 1 year ago

Getting date validation error:

Expected that /0/schedule/expiration must match format "date-time". Actual value is 2022-04-30T04:00Z.

This is a date-time value, seems to not like the missing seconds

colin-mckibben-sp commented 1 year ago

That is correct. The API guidelines state that dates SHOULD produce the full time, including seconds. https://sailpoint-oss.github.io/sailpoint-api-guidelines/#126. I don't believe there is anything to fix in the schema validator. This would require the API service to return the full time.