Skip to main content

validate-a-json-schema

Validate a JSON Schema against intended instances, invalid boundaries, references, defaults, and consumer behavior. Use when defining or reviewing a structured JSON contract.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
validate-a-json-schema
category
code
description
Validate a JSON Schema against intended instances, invalid boundaries, references, defaults, and consumer behavior. Use when defining or reviewing a structured JSON contract.
# validate-a-json-schema Verify both what the schema accepts and what it rejects. ## When to use - Use for configuration, APIs, events, manifests, stored documents, or generated data. - Do not assume `default`, `format`, or annotation keywords mutate or enforce data in every validator. ## Procedure 1. Record draft version, base URI, vocabulary, validator implementation, and consumer expectations. 2. Resolve local and remote references without untrusted network fetching in production validation. 3. Check object properties, required fields, additional properties, arrays, numbers, strings, nulls, enums, and composition. 4. Create canonical valid examples for minimum and representative shapes. 5. Create invalid cases for missing, extra, wrong-type, boundary, duplicate, and contradictory values. 6. Test conditional logic, recursive references, formats, defaults, and unevaluated properties in the actual validator. 7. Review compatibility impact on existing producers and consumers. 8. Save schema, fixtures, validator version, and results together. ## Done - A schema test file contains representative valid and invalid instances for every material rule and boundary - The actual validator is tested with resolved references, declared draft, diagnostics, and consumer compatibility evidence
GitHub에서 보기