You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reused later: smoke-test hatch package validate and live registry round-trip both need a ready-made server.json to avoid blocking on authoring during hackathon sessions
Create examples/server_v2.0.0_example.json in the Hatch-Schemas repo (or in the hackathon working directory if the repo is not yet ready). The file must be a complete, valid server.json that exercises all v2.0.0 extension features.
Minimum required coverage
One entry per citations[] format type — at least one of each must appear:
Create a second file examples/server_v2.0.0_invalid_example.json that intentionally fails validation — for example, a citations entry with an unknown format value or a provenance block with neither field set.
Acceptance Criteria
examples/server_v2.0.0_example.json validates successfully against package/v2.0.0/hatch_pkg_metadata_schema.json
All 9 citations[].format values are represented (or all values defined in the schema at the time of writing)
provenance is populated with both git_sha and build_env
All four dependencies types have at least one entry
examples/server_v2.0.0_invalid_example.json fails validation with a clear, actionable error message
Both files are committed on feat/schema-v2.0.0-extension
Context
This is a sub-issue of Issue #27 (draft v2.0.0 schema proposal). A concrete sample
server.jsonserves two purposes:hatch package validateand live registry round-trip both need a ready-madeserver.jsonto avoid blocking on authoring during hackathon sessionsWork on this alongside Issue #27, not after it.
Task
Create
examples/server_v2.0.0_example.jsonin theHatch-Schemasrepo (or in the hackathon working directory if the repo is not yet ready). The file must be a complete, validserver.jsonthat exercises all v2.0.0 extension features.Minimum required coverage
One entry per
citations[]format type — at least one of each must appear:provenance{}both fields populated:schema_versionset to the draft version:All v1.2.2
dependenciestypes represented (at least one entry each):Also include a negative test case
Create a second file
examples/server_v2.0.0_invalid_example.jsonthat intentionally fails validation — for example, acitationsentry with an unknownformatvalue or aprovenanceblock with neither field set.Acceptance Criteria
examples/server_v2.0.0_example.jsonvalidates successfully againstpackage/v2.0.0/hatch_pkg_metadata_schema.jsoncitations[].formatvalues are represented (or all values defined in the schema at the time of writing)provenanceis populated with bothgit_shaandbuild_envdependenciestypes have at least one entryexamples/server_v2.0.0_invalid_example.jsonfails validation with a clear, actionable error messagefeat/schema-v2.0.0-extensionReferences
__reports__/crackingshells_alignment_strategy/01-alignment_strategy_v1.md § The Scientific Extension Contract