Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra hyphen out of the core-metadata.yaml #4377

Closed
judehung opened this issue Feb 21, 2023 · 1 comment
Closed

Remove extra hyphen out of the core-metadata.yaml #4377

judehung opened this issue Feb 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@judehung
Copy link
Member

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: openapi/v3/core-metadata.yaml

Is this a regression?

No

Description and Minimal Reproduction [REQUIRED]

Three map[string]any fields are recently added into DTOs:

  1. tags field of Device DTO
  2. properties field of Device DTO
  3. properties field of ProvisionWatcher
    The proper way to show map[string]any in swagger is like following:
tags:
  tag1:
    field1: "field1Value"
    field2: "field2Value"
  tag2:
    field3: "field3Value"
    field4: "field4Value"
    field5: "field5Value"

However, #4375 accidentally add extra hyphens like following:

tags:
  - tag1:
      field1: "field1Value"
      field2: "field2Value"
  - tag2:
      field3: "field3Value"
      field4: "field4Value"
      field5: "field5Value"

Those hyphens should be removed for proper map[string] representation.

🔥 Exception or Error

N/A

🌍 Your Environment

Deployment Environment:
N/A
EdgeX Version [REQUIRED]:
3.0.0

Anything else relevant?
No

@judehung judehung added the bug Something isn't working label Feb 21, 2023
@judehung judehung self-assigned this Feb 21, 2023
@cloudxxx8
Copy link
Member

fixed in #4378

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants