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

fix: Update swagger to match latest changes in go-mod-core-contracts Device DTO #1333

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

judehung
Copy link
Member

Per edgexfoundry/go-mod-core-contracts#800, the Device DTO is added with a new field properties, so the swagger file needs to be updated correspondingly.

Moreover, this commit also updates the swagger file to remove those fields that had been taken out of Device DTO before:

  • created
  • modified
  • serviceId
  • profileId

This commit also adds back a newly created field tags into the Device DTO.

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-sdk-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

…Device dto

Per edgexfoundry/go-mod-core-contracts#800, the
Device DTO is added with a new field "Properties", so the swagger file needs to be updated correspondingly.

Moreover, this commit also updates the swagger file to remove those fields that had been taken out of Device DTO before:
- created
- modified
- serviceId
- profileId

This commit also adds back a newly created field "tags" into the Device DTO.

Signed-off-by: Jude Hung <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #1333 (05593f9) into main (f03d932) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main    #1333   +/-   ##
=======================================
  Coverage   52.69%   52.69%           
=======================================
  Files          26       26           
  Lines        2319     2319           
=======================================
  Hits         1222     1222           
  Misses        993      993           
  Partials      104      104           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cloudxxx8 cloudxxx8 merged commit 64ca9b0 into edgexfoundry:main Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants