Mandatory parameters (isRequired) missing in schema
Seems that all parameters are optional. Are there any plans to support mandatory parameters as well?
Hi, you can mark each symbol as "isRequired":"true"
Example :
"symbols": { "firstParameter": { "isRequired": "true", "type": "parameter", "datatype": "string", "replaces": "MY_FIRST_PARAMETER_TO_REPLACE", "description": "First mandatory parameter" }, "secondParameter": { "isRequired": "true", "type": "parameter", "datatype": "string", "replaces": "MY_SECOND_PARAMETER_TO_REPLACE", "description": "Second mandatory parameter" }, "thirdParameter": { "isRequired": "false", "type": "parameter", "datatype": "string", "replaces": "MY_THIRD_PARAMETER_TO_REPLACE", "description": "Third optional parameter" } }
Is it what you're asking for ?
Nice, thanks @marcusien. It's not listed in the schema though.
Didn't know what you provided ☺️
In my case I always used what's listed on this link. Don't hesitate to take a look https://github.com/dotnet/templating/wiki/"Runnable-Project"-Templates
I'll leave this open.
https://github.com/SchemaStore/schemastore/pull/493 has been merged which should take care of this.