Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom headers for meta-schemas #200

Merged
merged 3 commits into from
Dec 20, 2023
Merged
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
47 changes: 47 additions & 0 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Dialect Schemas
/draft/:draft/*schema
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Vocabulary Schemas
/draft/:draft/meta/*
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Links Schemas
/draft/:draft/links
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Output Schemas
/draft/:draft/output/*schema
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/draft/:draft/output/*schema
/draft/:draft/output/*

I'll suggest this modification to cover "/draft/2019-09/output/verbose-example" and "/draft/2020-12/output/verbose-example"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"verbose-example" doesn't belong because it's not a schema. It's example output for the verbose output format.

Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Older Meta-Schemas
/draft-:draft/*schema
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Older Links Schemas
/draft-:draft/links
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# Older Ouput Schemas
/draft-07/hyper-schema-output
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable

# JSON Reference Schemas
/draft-:draft/json-ref
Access-Control-Allow-Origin: *
Content-Type: application/schema+json
Cache-Control: public, max-age=31536000, immutable