This is a sub-issue of #1910624: [META] Introduce and complete configuration schemas in all of core.
Problem/motivation
#1866610: Introduce Kwalify-inspired schema format for configuration introduced the idea of config schema. The changelog leads to (hopefully extensive) documentation on the format at http://drupal.org/node/1905070. While there are little cleanups planned for the format overall, the current format is a result of months of back and forths, so it should be perfectly fine to apply it more widely to core.
Proposed solution
Create a configuration schema for book module.
Schema in place
Schema not yet in place
book.settings.yml
Comment | File | Size | Author |
---|---|---|---|
#11 | no-config-changes.png | 130.76 KB | YesCT |
#11 | change_config.png | 159.9 KB | YesCT |
#11 | no_0.png | 158.34 KB | YesCT |
#9 | 1912302-book-schema-9.patch | 868 bytes | vijaycs85 |
#8 | 1912302-book-schema-8.patch | 794 bytes | vijaycs85 |
Comments
Comment #1
gabriel.achille CreditAttribution: gabriel.achille commentedComment #2
Gábor HojtsyTag for configuration schema.
Comment #3
vijaycs85Adding schema file...
Comment #4
vijaycs85updating key.
Comment #6
vijaycs85Updating space issue with "mapping"...
Comment #7
gabriel.achille CreditAttribution: gabriel.achille commentedComment #8
vijaycs85Updated code style and verified with config_inspector
Comment #9
vijaycs85Ignore patch in #8. Updating correct patch file(screenshot in #8 applicable for this patch).
Comment #10
Gábor HojtsyRestore tags.
Comment #11
YesCT CreditAttribution: YesCT commentedI looked at the (one) data yml file and the schema file side by side and visually inspected them. They looked to match.
http://drupal.org/node/1910624#steps-to-test
The schema file is in the schema directory (good). #1914366: Move all configuration schema files into a schema subdirectory
The inspector module, shows the form looking good. (example review instructions: #1910624-9: [META] Introduce and complete configuration schemas in all of core)
I also looked at the schema for code style, and it meets it (http://drupal.org/node/1905070#codestyle).
rtbc for that.
aside question:
why is there a 0 with the default config? I thought it might be the element in the array (sequence).
but if I change the config and add more allowed types,
the 0 index goes away.
Comment #12
YesCT CreditAttribution: YesCT commentedrelated to #11 #1928082: Make usage of book.settings:allowed_types consistent
Comment #13
webchickCommitted and pushed to 8.x. Thanks!