mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
156 stars 89 forks source link

field value type number gets overriden #116

Open diogoeira2 opened 1 year ago

diogoeira2 commented 1 year ago

On your stackblitz example (and on my test app), if a field (type number) is set with: 20230302175510297 it changes to 20230302175510296.

my schema: this.editorOptions.schema = { definitions: {}, $schema: 'http://json-schema.org/draft-07/schema#', $id: '#/randomNumber', type: 'object', title: 'SimulationParameter Attributes Fix eventNumber', properties: { eventNumber: { $id: '#/properties/eventNumber/randomNumber', type: 'number', title: 'Attribute eventNumber', }, }};

I guess it's mistaking the field type and parsing it has datetime.

Thank you