Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
vijaycs85may 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.
Comment #2
Gábor HojtsyWell, 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.
Comment #3
vuilComment #4
Gábor HojtsyWhy is this outdated?
Comment #5
vuil