Skip to content

feat: move the Question Pack apiVersion to lakespeak.net - #63

Merged
ivanvyd merged 1 commit into
mainfrom
feat/lakespeak-net-apiversion
Aug 8, 2026
Merged

feat: move the Question Pack apiVersion to lakespeak.net#63
ivanvyd merged 1 commit into
mainfrom
feat/lakespeak-net-apiversion

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Aug 8, 2026

Copy link
Copy Markdown
Owner

The project's site is at lakespeak.net, so the schema identifier follows it.

pack init now scaffolds apiVersion: lakespeak.net/v1alpha1, and the JSON schema, docs/question-packs.md, the README and the example pack agree.

Existing packs keep working

QuestionPackLoader accepts both spellings and the schema lists both in an enum. The identifier is a name rather than a URL — nothing resolves it — so rejecting lakespeak.dev/v1alpha1 would break every pack already committed to somebody's repository and buy nothing. The validation message quotes only the current spelling, so a genuine typo still points at the right answer.

public const string CurrentApiVersion = "lakespeak.net/v1alpha1";
public const string LegacyApiVersion  = "lakespeak.dev/v1alpha1";

Verification

New test Still_parses_a_pack_written_before_the_domain_moved, proven meaningful by removing the legacy branch and watching it go red, then restoring it and watching it go green.

Full suite: 231 passed, 0 failed across Genie, Application, QuestionPacks, Contract and Cli. dotnet format --verify-no-changes clean.

The project's site is at lakespeak.net, so the schema identifier follows it. `pack init` now
scaffolds `apiVersion: lakespeak.net/v1alpha1`, and the schema, docs, README and example pack say
the same.

Packs that declare `lakespeak.dev/v1alpha1` still load. The loader accepts both spellings and the
schema lists both in an enum. The identifier is a name rather than a URL and nothing resolves it,
so rejecting the old one would break every pack already committed to somebody's repository and buy
nothing in return. The error message quotes only the current spelling, so a genuine typo still
points at the right answer.

Covered by a test that fails when the legacy branch is removed.
@ivanvyd
ivanvyd merged commit 3154295 into main Aug 8, 2026
10 checks passed
@ivanvyd
ivanvyd deleted the feat/lakespeak-net-apiversion branch August 8, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant