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

[Documentation] Type Properties Cannot Start With a Number #197

Open
arranf opened this issue Mar 17, 2022 · 0 comments
Open

[Documentation] Type Properties Cannot Start With a Number #197

arranf opened this issue Mar 17, 2022 · 0 comments

Comments

@arranf
Copy link
Contributor

arranf commented Mar 17, 2022

If you have a type (as shown below) which has a property that begins with a numeric character (as a string or not!) encode and encodeDiff fail because they attempt to use dot notation obj.1 rather than square bracket notation obj['1'] for property access.

MyType:
 '1': string 
@arranf arranf changed the title Document Type Properties Cannot Start With a Number [Documentation] Type Properties Cannot Start With a Number Mar 18, 2022
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