AndydeCleyre / nestedtextto

CLI to convert between NestedText and JSON, YAML, or TOML, with explicit type casting
The Unlicense
21 stars 0 forks source link

Improve the commented suggested "better" auto-generated schema #6

Open AndydeCleyre opened 1 year ago

AndydeCleyre commented 1 year ago

Here's a good example of where it fails to match properly: https://github.com/KenKundert/nestedtext/discussions/40#discussioncomment-4079299

AndydeCleyre commented 1 year ago

The feature/experimental-schema-guessing branch now succeeds with the above example. But I will need to do a lot more testing to make sure it never produces worse results than the current method. And I've left a cry for help in the yamlpath discussions.

AndydeCleyre commented 2 months ago

A general note: I haven't worked on that in a while. I paused because in order to "properly" improve the guessing, it seemed that I would need to hold on to more of the original data for longer, and I'm not sure the extra complexity is worthwhile. If this issue matters to you, please add a reaction or comment here to help me gauge demand. Thanks!