Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixes #1206 move the SpecificationVersionDetector to main from test#1220

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
stevehu wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
fromissue1206

Conversation

@stevehu
Copy link
Contributor

No description provided.

@stevehu
Copy link
ContributorAuthor

@sschuberth, This PR targets the master branch and will be backported to the 2.x branch once it has been reviewed and approved. Please let us know if you encounter any issues. Thank you.

sschuberth reacted with heart emoji

Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Collaborator

@justin-tayjustin-tay left a comment

Choose a reason for hiding this comment

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

I actually don't think this is a good idea particularly as some of what it is doing like determining the version based on the file path seems rather odd to be exposing to users.

I'm not sure if the users really know what they are doing as the dialect is already automatically detected from$schema. A lot of people use their ownObjectMapper to parse it toJsonNode, and this is rather unnecessary, particularly if you want to have line numbers as the library needs to use it's own to do so.

I don't mind if something likepublic static Optional<SpecificationVersion> fromSchemaNode(JsonNode) was added toSpecificationVersion but would like to know exactly what their use case is and if there is a better way to solve their use case.

@stevehu
Copy link
ContributorAuthor

@justin-tay, I completely agree with you. I do not think this is the right approach; however, it was our mistake to introduce this class earlier, and some users are already relying on it. Removing it abruptly would break their code.

One option is to restore it in the 2.x branch and mark it as deprecated, while removing it from the master branch. What are your thoughts on this approach?

@justin-tay
Copy link
Collaborator

While the approach sounds reasonable, the upgrade to 2.x was already a rather large breaking change. Without resolving the actual underlying issue, this will just come up again for 3.x.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@justin-tayjustin-tayjustin-tay left review comments

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@stevehu@justin-tay

[8]ページ先頭

©2009-2025 Movatter.jp