Skip to content

Update study PGN example. - #666

Open
ddobbelaere wants to merge 1 commit into
lichess-org:masterfrom
ddobbelaere:bugfix/update-study-pgn-example
Open

Update study PGN example.#666
ddobbelaere wants to merge 1 commit into
lichess-org:masterfrom
ddobbelaere:bugfix/update-study-pgn-example

Conversation

@ddobbelaere

@ddobbelaere ddobbelaere commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Update example in StudyPgn schema to the latest version, as quite a few things have changed to the tags.

I noticed that the StudyPgn schema is also used in some broadcast endpoints, unfortunately. This is large "overshadowed" in the interface by the fact that these endpoints also provide explicit examples, but this does not seem so clean to me. Maybe we should have a generic Pgn schema of type string without an explicit example?

This would also allow us to get rid of StudyPgn (and use the new opaque Pgn schema) by defining explicit examples in the examples folder for all use cases, similar to how we do it with the broadcasts. This has the advantage that we can differentiate the examples better (e.g. export all chapters is now just the single chapter). If this would have been the case already, I imagine this PR would not have existed, as @fitztrev would likely have updated it in a0f82d0.

What do you think?

@ddobbelaere
ddobbelaere force-pushed the bugfix/update-study-pgn-example branch from a77eb09 to c96afe8 Compare July 30, 2026 18:26
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