sailpoint-oss / developer.sailpoint.com

The codebase that makes up developer.sailpoint.com, including developer documentation. This codebase is open source and welcomes contributions.
https://developer.sailpoint.com
MIT License
31 stars 85 forks source link

[Bug] Examples (from schema) don't use the provided examples in the spec #74

Closed colin-mckibben-sp closed 1 year ago

colin-mckibben-sp commented 2 years ago

Describe the bug

The GET /v3/identity-profiles schema provides examples for each of the properties, but the plugin will not use those examples. Instead, it provides default examples based on the data type. image

Interestingly, the request body schemas do use the examples provided in the spec… image

To Reproduce Steps to reproduce the behavior:

See the "Example (from schema)" for this endpoint. https://developer.sailpoint.com/idn/api/v3/list-identity-profiles

Expected behavior

If the API spec provides examples for each property in a schema, then the "Examples (from schema)" should use those examples.

Actual behavior

The "Examples (from schema)" uses a default value appropriate for each data type in the schema, which is not very helpful.

Operating System (please complete the following information):

Browser (please complete the following information):

jordan-violet-sp commented 1 year ago

Fixed in a previous PR.