json-schema-typed icon indicating copy to clipboard operation
json-schema-typed copied to clipboard

Create an custom integer type

Open Codevendor opened this issue 3 years ago • 0 comments
trafficstars

Nice schema types. You can enhance the schema definitions by adding a integer type for specific properties.

For example:

Number = Float & Signed Integer Integer = Rounded Signed Integer

Properties like: minimum - Integer, not float maximum - Integer, not float exclusiveMinimum - Integer, not float exclusiveMaximum - Integer, not float minLength - Integer, not float maxLength - Integer, not float exclusiveMinLength - Integer, not float exclusiveMaxLength - Integer, not float

Example link: https://spin.atomicobject.com/2018/11/05/using-an-int-type-in-typescript/

Other then that kool module. I'm currently building an async json schema validator, built in typescript. I hope to build a json schema stream validator as well for larger json files. I'm about half way done on my module.

Codevendor avatar Aug 23 '22 05:08 Codevendor