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

Add compare_tspec() #169

Open
mgirlich opened this issue Nov 23, 2022 · 0 comments
Open

Add compare_tspec() #169

mgirlich opened this issue Nov 23, 2022 · 0 comments

Comments

@mgirlich
Copy link
Owner

mgirlich commented Nov 23, 2022

To compare two specifications. It should

  • compare by keys
  • ignore the order of fields (optional?)
  • ignore different names (optional?)
  • recognize unpacked fields
  • recognize if field of x is required but field of y is not
  • recognize if ptype_inner of x and y field are not compatible
  • recognize different input forms
  • ignore arguments set by the user
    • ptype
    • transform, elt_transform
    • fill
    • .names_to, names_to, values_to

Idea: use diffviewer::visual_diff() to show a visual diff.

This is quite handy in combination with #39 where the user can be informed about unspecified fields.

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

No branches or pull requests

1 participant