Pavel Kityan

Results 10 comments of Pavel Kityan

Yes, definitely! I've not thinked about not adding attribute at all. That's because I use this method: if attribute can be ignored I write `` or ``. But If ``...

I suppose that a schema that omits properties is equivalent to TypeScript's `any` only if `additionalProperties` in schema resolved to `true`. Of course this is a very rare case. Here...

Anyway, I've just fixed "the issue" in my code generation pipeline with dirty string replacement: `export interface Params {}` -> `export type Params = Record` Maybe we just should add...

@NikitaMelnikov, дайте пожалуйста прогноз — всё ещё на холде или в планах на 2021?

Thanks! You are definitely right. Moreover there is a merged PR (https://github.com/kityan/json-rpc-viewer/pull/5) in the repo with such update but I've not updated the version in store yet because was going...

May be it's not good idea at all. From a server side view it's OK to remove optional flag because default value is injected at validation stage. But if we...

Anyway, the option I've suggested earlier will be useful. For example, in our development process we use two separate ts-files (with defaults injected - for server and without - for...

@leppaott > Just add them to the required lists? In the past I had experience that required was checked before default so didn't work necessarily but now I'm setting required...

@GabenGar > Your mistake is using json schema as data modeling DSL instead of JSON payload validation DSL. Don't judge before you try. So, your advice — don't use defaults...

@GabenGar > it doesn't make sense in the context of typescript types, as there is no such thing as "default value" for a type. Of course. But it **does make...