For typescript and json-schema it makes sense to have constant values, such as strings with specific values.
In the schemas this should be presented as something like field: { type: String, constValue: 'valuehere }; for TS interfaces the output should then be field: 'valuehere' and similarly the const should be presented as such in json-schema.
Const fields don't really make sense in mongoose though, maybe it'd be best to error out if such a field is to be included, the presence can be controlled with presentIn anyway.
For typescript and json-schema it makes sense to have constant values, such as strings with specific values.
In the schemas this should be presented as something like
field: { type: String, constValue: 'valuehere }; for TS interfaces the output should then befield: 'valuehere'and similarly the const should be presented as such in json-schema.Const fields don't really make sense in mongoose though, maybe it'd be best to error out if such a field is to be included, the presence can be controlled with
presentInanyway.