Skip to content

Commit ff91662

Browse files
committed
feat(snippets): drop ld-application.slot
Per the schema audit, slot was a write-only field — declared on the LDApplicationHints struct, decoded from frontmatter, never read by any production code. The marker comment carries the snippet id directly, so the per-page lookup slot was meant to power doesn't happen. - Remove the LDApplicationHints struct and the LDApplication field on Frontmatter. - Strip the `ld-application:\n slot: <name>\n` block from all 122 snippet files (KnownFields(true) would otherwise fail to parse them after the struct change). - Render output unaffected: end-to-end against gonfalon shows `no changes` + `ok` from verify.
1 parent f82729c commit ff91662

123 files changed

Lines changed: 2 additions & 251 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

snippets/internal/model/model.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ type Frontmatter struct {
2424
Lang string `yaml:"lang"`
2525
File string `yaml:"file"`
2626
Description string `yaml:"description"`
27-
Inputs map[string]Input `yaml:"inputs"`
28-
LDApplication LDApplicationHints `yaml:"ld-application"`
29-
Validation Validation `yaml:"validation"`
27+
Inputs map[string]Input `yaml:"inputs"`
28+
Validation Validation `yaml:"validation"`
3029
}
3130

3231
type Input struct {
@@ -35,10 +34,6 @@ type Input struct {
3534
RuntimeDefault string `yaml:"runtime-default"`
3635
}
3736

38-
type LDApplicationHints struct {
39-
Slot string `yaml:"slot"`
40-
}
41-
4237
type Validation struct {
4338
// Runtime selects the validator harness under
4439
// validators/languages/<runtime>/. If empty, the snippet's `lang:`

snippets/sdks/android-client-sdk/snippets/getting-started/activity-main-xml.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/android-client-sdk/snippets/getting-started/build-gradle.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/android-client-sdk/snippets/getting-started/main-activity.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/android-client-sdk/snippets/getting-started/main-application.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/android-client-sdk/snippets/getting-started/manifest.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/cpp-client-sdk/snippets/getting-started/build-mkdir.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/cpp-client-sdk/snippets/getting-started/clone-sdk.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/cpp-client-sdk/snippets/getting-started/cmake-build.snippet.md

Lines changed: 0 additions & 2 deletions

snippets/sdks/cpp-client-sdk/snippets/getting-started/cmake-make.snippet.md

Lines changed: 0 additions & 2 deletions

0 commit comments

Comments
 (0)