apigee / apigee-api-catalog-drupal

Manage your API catalog within Drupal's content management approach
https://www.drupal.org/project/apigee_api_catalog
GNU General Public License v2.0
17 stars 16 forks source link

date-time rendering issue #241

Closed Akashr7n closed 11 months ago

Akashr7n commented 11 months ago

Description

When publishing API in yaml, if any field has value transDateTime: 2020-12-18T22:01:06 (value is unquoted), it is rendered as {}. refer screenshot.

swagger editor online and many other tools render quoted value.

Steps to Reproduce

Upload a openapi spec in yaml with example/value for any property as 2020-12-18T22:01:06

Actual Behavior

{} is rendered.

Expected Behavior

"2020-12-18T22:01:06" is expected

Screenshots

image

Notes

NA

Version Info

core - 9.3.12 Apigee API Catalog - 3.0.5

shishir-intelli commented 11 months ago

@Akashr7n The current UI formatter used is smartdocs. There are few known issues in smartdoc library , However we do not have ETA to fix this.

You can checkout other third party UI formatter for the field such as Swagger UI https://www.drupal.org/docs/8/modules/apigee-api-catalog/customize-your-api-catalog#s-displayopenapi-specs-using-other-rendering-formats

Akashr7n commented 11 months ago

@shishir-intelli Thanks for the suggestion. Is it possible to update only the swagger-ui library to latest(v5.10.5) with 'Swagger UI Field Formatter' version 8.x-3.3

currently swagger-ui library version is 4.1.3

shishir-intelli commented 11 months ago

@Akashr7n Swagger UI Field Formatter is a third party Drupal module and not managed by us, you can check the documentation for Swagger UI Field Formatter here

shishir-intelli commented 11 months ago

Closing this issue for now, feel free to reopen for any further help.

Akashr7n commented 11 months ago

Updated swagger-ui library to latest(v5.10.5) with 'Swagger UI Field Formatter' version 8.x-3.3

working fine for us. Thanks for the support.