Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate GAP Structure

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
validate:
name: Validate GAP directories
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Validate GAP structure
run: npm run test:structure
20 changes: 20 additions & 0 deletions metadata.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/graphql/gaps/main/metadata.schema.json",
"title": "GAP Metadata",
"type": "object",
"properties": {
"title": { "type": "string" },
"status": { "type": "string", "enum": ["proposal", "draft", "accepted"] },
"authors": { "type": "array", "items": { "type": "string" } },
"sponsor": { "type": "string" },
"discussion": { "type": "string" },
"id": { "type": "integer" },
"related": { "type": "array", "items": { "type": "integer" } },
"replaces": { "type": "integer" },
"supersededBy": { "type": "integer" },
"tags": { "type": "array", "items": { "type": "string" } }
},
"required": ["id", "title", "status", "authors", "sponsor", "discussion"],
"additionalProperties": false
}
Loading