Switch the API to use the new field types.
Review Request #9683 — Created Feb. 20, 2018 and submitted
Djblets gained support for a better way of specifying types for fields
and request parameters in the API. This moves us over to these new
types, fixing up the documentation generator in the process to ensure
we're still generating documentation correctly.
In almost all cases, we're using the modern equivalent of the legacy
field types. However, fields for date/time strings have been updated to
DateTimeField, which will generate nicer documentation by default
(removing the need for us to specify time formats) and will handle
validation for us (removing the need for us to parse the strings).
Unit tests pass.
Built the docs and compared the generated HTML output to the output
using older field types. Except for some slight differences in how we're
representing things now, the output was the same.
webapi-lint.pyto check for modern field types.
- Updated the
WebAPIResourceto use a modern field type for
Revision 2 (+885 -629)
Checks run (1 failed, 1 succeeded)
contrib/internal/webapi-lint.py (Diff revision 2)Show all issues