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

Sort types and fields consistently between generations #49

Open
angeloashmore opened this issue Jun 7, 2023 · 2 comments
Open

Sort types and fields consistently between generations #49

angeloashmore opened this issue Jun 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@angeloashmore
Copy link
Member

Is your feature request related to a problem? Please describe.

Deltas between generated files may be reduced by sorting all types and fields in a consistent manner.

Describe the solution you'd like

Type and their properties could be sorted alphabetically.

Describe alternatives you've considered

N/A

Additional context

N/A

@angeloashmore angeloashmore added the enhancement New feature or request label Jun 7, 2023
@lihbr
Copy link
Member

lihbr commented Jun 7, 2023

We could also suggest treating the file as a binary in .gitattributes: https://github.com/prismicio/prismic-client/blob/master/.gitattributes#L4-L6

@angeloashmore
Copy link
Member Author

angeloashmore commented Jun 7, 2023

I sometimes like to look at the diff to see the full effects of a change, but that could be a good strategy for most users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants