Open ghost opened 2 years ago
@marcin-m-dsv, thank you for opening this issue. Due to the winter holidays season, it may take us longer than a few days to respond to it. If the issue is urgent, please contact Azure support.
@marcin-m-dsv, thank you for reporting the bug.
@VitaliyKurokhtin, it sounds similar to a bug that was fixed with the October's release: https://github.com/Azure/API-Management/releases/tag/release-service-2021-10 but affects time
instead of date
type.
Properties with format:
date
in OpenAPI documents are no longer converted to adate-time
object.
We are having somewhat similar issue, but in our case the timestamp in example, such as
Input:
{
"changeTime": "07:00:00"
}
Is converted to this in the example provided by APIM portal:
{
"changeTime": "2024-08-21"
}
This is creating issues for our end users.
When importing API through the developer portal / azure cli / azure PowerShell, example fields with format set to
time
are changed to full date-time if the example schema is referenced by$ref
.Reproduction steps
Import the following API specification:
components: schemas: IsoTime: type: object properties: time: type: string format: time
{"time":"10:00:00+01:00"}
{"time":"2021-12-16T09:00:00Z"}