question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project type "other" is not allowed according to template JSON schema

See original GitHub issue

When I type dotnet new --help the output also contains the following line:

–type Filters templates based on available types. Predefined values are “project”, “item” or “other”

So it seems that “other” might be a valid value. But in http://json.schemastore.org/template only “project” and “item” is allowed.

I would like to make a template that creates a solution with multiple projects. What would be the correct project type for this? My guess would have been that it’s “other”.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bitbonkcommented, Feb 8, 2021

Ok, thank you, that makes sense. Just as a side note: The template sln ist still of type other:

> dotnet new --type other
These templates matched your input: type='other'.
Templates          Short Name      Language    Tags
-------------      ----------      --------    --------
Solution File      sln                         Solution
0reactions
vlada-shubinacommented, Oct 26, 2021

Added solution type to schema, and docs. other won’t be reverted. CLI allows to filter for any types, not only predefined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

$schema should always be an allowed property #220
We use "additionalProperties": false in the JSON Schema to indicate that you are not allowed to use other properties, so with the current ......
Read more >
Error: Schema validation failed with the following errors ...
In the new schema, it is no longer allowed to use the key es5BrowserSupport ; remove the following line in your angular.json :...
Read more >
Site template JSON schema
JSON schema reference for building site templates for SharePoint.
Read more >
Getting Started Step-By-Step
The type validation keyword defines the first constraint on our JSON data and in this case it has to be a JSON Object....
Read more >
Implementations | JSON Schema
This meta model can be used in Mako templates to generate source code, other schemas or plantUml. statham (MIT) - generate type-annotated models...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found