Closed duncandewhurst closed 1 week ago
I don't know how to resolve the pytest error.
The change looks good.
As I think you expect, the error looks to be with recent library versions, not the changes here. I'll try to take a look at it later in the week.
I've fixed the tests by setting a project name explicitly, and by not testing the new myst-parser=4.0.0 (I've added a new issue for this https://github.com/OpenDataServices/sphinxcontrib-opendataservices-jsonschema/issues/61). This is now with @odscjames to review.
No tests for include option existed (in PR or previously), so I added one that also checks the work done here.
Ah, and changelog. I'll Edit original PR to add one then I'm happy.
The old logic meant that properties beginning with names specified in the
include
andcollapse
options would also be included or collapsed.For example, given the following schema and directive, both
id
andidentifier
would be included in the output when onlyid
is specified in theinclude
option:Schema
Directive
Output on
main
branch:Output on this branch: