Problem/Motivation

For items where there is no schema a rough auto-generated schema would be more helpful than nothing. This could help people get started doing their actual schema. We can add a comment with a link to the schema docs in the auto-generated schema to help them find where to continue fleshing it out.

Proposed resolution

Add option to auto-generate basic schema where there is no existing schema.

Remaining tasks

Do it.

User interface changes

Integrate it in the overview.

API changes

None. New API to be added.

Comments

vijaycs85’s picture

may be property(discussed in #2264179: Clarify use of property/undefined and add an ignore type in configuration schema) is the way forward as it allows to define schema without lots of assumptions.

Gábor Hojtsy’s picture

Well, if we generate with the propery type that is not very forward thinking :D I think the hardest to detect will be string indexed sequences vs. mapping, that will require real thinking on the human's part, but we can detect several common things, eg. label, title, etc. We can IMHO assume mapping for string indexed arrays at first.

vuil’s picture

Status: Active » Closed (outdated)
Gábor Hojtsy’s picture

Status: Closed (outdated) » Active

Why is this outdated?

vuil’s picture

Version: 8.x-1.x-dev » 2.1.x-dev