Repository navigation
feat: add annotation support - #35
Conversation
|
@stevehu would love to get your review in this. |
|
The harness compiles and preserves flag output, but I found one blocking issue with annotation locations. [P1] Append the annotation keyword to the schema location — Networknt’s The suffix removal also corrupts legitimate subschema paths: These cases were reproduced against the pinned 3.0.6 dependency and will fail Bowtie’s location-based annotation comparisons. Please append |
|
Thanks for the review @stevehu
|
|
Sorry to ping you again, @stevehu We’re almost done with the harness updates and are hoping to get the PR merged so we can generate the complete annotation report. Would really appreciate your feedback or any follow-up suggestions when you get a chance. |
|
Thanks for the update. The earlier location issue is fixed. I compiled this head ( There are two more location problems, both in Please fix before merging1. A trailing 2. Locations aren't percent-encoded, but Bowtie decodes them (line 215) Library side (networknt)3. 4. 3.0.6 misses several suite annotations. At 3.0.6, boolean, array and null annotation values are dropped, and Minor5. No regression coverage for the location mapping. A small test of 6. Any |
|
Thanks for the review @stevehu. I've updated |
|
Thanks for the update. Both location issues from my last review are fixed at I built the Dockerfile's builder stage, and
Flag output is unchanged. Nothing below blocks merging. Two items are small test gaps. The other two are networknt bugs, which I'll fix on the library side. Minor (harness)1. The anchor branch of 2. The end-to-end test never asserts Library side (networknt)3. Control characters in property names give wrong locations. 4. The The |
|
Thanks for checking those edge cases @stevehu. I've dropped the unreachable non-pointer fragment branch in |
|
Thanks, both items are fixed at One small thing in the new test, which doesn't block merging:
The two library-side issues from my last comment, control characters in names and the |
|
Good catch on the map overwrite @stevehu. Updated |
|
Thanks, that fixes it. At I also ran the JSON-Schema-Test-Suite annotation tests through the harness against 3.0.6, comparing the output the way Bowtie does:
Every failure traces to networknt, and the harness's location mapping was correct in all of them. These will show up as failures in the report once this merges. I'll fix them on the library side:
These are in addition to the networknt items from my earlier comments: control characters in names, the |
This adds annotation support in networknt harness.