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: make sure JSONParser is compatible with RawFileProvider #3390

Merged
merged 5 commits into from
Apr 20, 2022
Merged

Conversation

xiangce
Copy link
Contributor

@xiangce xiangce commented Apr 19, 2022

  • since the spec tags is from RawFileProvider

Signed-off-by: Xiangce Liu [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

The spec tags is set as a RawFileProvider kind, but the JSONParser takes the content as a list from TextFileProvider by default. This PR makes the JSONParser to work with both of them.

@xiangce xiangce changed the title fix: ensure JSONParser working with RawFileProvider fix: ensure JSONParser works with RawFileProvider Apr 19, 2022
xiangce added 2 commits April 19, 2022 14:14
- since the spec `tags` is from RawFileProvider

Signed-off-by: Xiangce Liu <[email protected]>
@xiangce xiangce changed the title fix: ensure JSONParser works with RawFileProvider fix: make sure JSONParser is compatible with RawFileProvider Apr 19, 2022
@xiangce xiangce merged commit 5a207ad into master Apr 20, 2022
@xiangce xiangce deleted the tags_kind branch April 20, 2022 01:59
xiangce added a commit that referenced this pull request Apr 20, 2022
* fix: make sure JSONParser is compatible with RawFileProvider

- since the spec `tags` is from RawFileProvider

Signed-off-by: Xiangce Liu <[email protected]>

* add tests in which content is in bytes

Signed-off-by: Xiangce Liu <[email protected]>

* revert the update to Specs.tags

Signed-off-by: Xiangce Liu <[email protected]>

* fix the test error of python2

Signed-off-by: Xiangce Liu <[email protected]>
(cherry picked from commit 5a207ad)
xiangce added a commit that referenced this pull request Sep 6, 2024
* fix: make sure JSONParser is compatible with RawFileProvider

- since the spec `tags` is from RawFileProvider

Signed-off-by: Xiangce Liu <[email protected]>

* add tests in which content is in bytes

Signed-off-by: Xiangce Liu <[email protected]>

* revert the update to Specs.tags

Signed-off-by: Xiangce Liu <[email protected]>

* fix the test error of python2

Signed-off-by: Xiangce Liu <[email protected]>
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.

2 participants