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 and extend KSY schema #1

Merged
merged 1 commit into from
Apr 18, 2019
Merged

Conversation

dgelessus
Copy link

This modifies half of everything in the schema - see the commit message for a list of what exactly I added/fixed. But now the schema works with every spec in kaitai_struct_formats (plus a few of my specs that I haven't published yet).

* Added support for doc and doc-ref properties in many places
* Added support for params on types
* Added various meta properties
* Added support for verbose enums
* Added support for endian switching
* Added pad-right property
* Added -orig-id property
* Allowed arbitrary properties starting with a dash in various places
* Allowed meta sections on non-top-level types
* Allowed string values for terminator property (needed for non-decimal
  number literals)
* Allowed using booleans in place of strings in a few places
* Changed encoding property from an enum to a plain string - it's
  impossible to list all available encodings (especially since they
  vary between target languages)
* Removed incorrect patterns from switch-on and enum keys
@fudgepop01 fudgepop01 merged commit 13e819f into fudgepop01:master Apr 18, 2019
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