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

community-page #646

Merged
merged 2 commits into from
Apr 15, 2024
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
8 changes: 4 additions & 4 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default function Layout({
);

useEffect(() => {
// Check if the URL contains "#community"
if (window.location.hash === '#community') {
// Check if the URL contains "community"
if (window.location.hash === 'community') {
// Find the anchor element by its ID
const target = document.getElementById('community');

Expand Down Expand Up @@ -191,7 +191,7 @@ const MainNavigation = () => {
/>
<MainNavLink
className='hidden lg:block hover:underline'
uri='/#community'
uri='/community'
label='Community'
isActive={section === 'community'}
/>
Expand Down Expand Up @@ -275,7 +275,7 @@ const MobileNav = () => {
/>
<MainNavLink uri='/blog' label='Blog' isActive={section === 'blog'} />
<MainNavLink
uri='/#community'
uri='/community'
label='Community'
isActive={section === 'community'}
/>
Expand Down
135 changes: 61 additions & 74 deletions data/case-studies.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,65 @@
[
{
"title":"How JSON Schema Was an Obvious Choice at GitHub",
"summary":"At GitHub's Docs Engineering team, while shipping releases to production 20 times per day or more, JSON Schema is critical in increasing confidence in changes to data, content and APIs.",
"title": "How JSON Schema Was an Obvious Choice at GitHub",
"summary": "At GitHub's Docs Engineering team, while shipping releases to production 20 times per day or more, JSON Schema is critical in increasing confidence in changes to data, content and APIs.",
"logo": "/img/logos/github-logo.png",
"links":
{
"lang": "URL1",
"url": "/blog/posts/github-case-study"
}
},
{
"title":"How 6 River Systems saves time and boosts collaboration with JSON Schema",
"summary":"Explore the powerful impact of JSON Schema on 6 River Systems' fulfillment operations. Discover how they enabled enhanced collaboration, time savings, and data quality assurance, propelling their successful scaling journey.",
"logo": "/img/logos/6river-logo.svg",
"links":
{
"lang": "URL1",
"url": "/blog/posts/6-river-systems-case-study"
}

},
{
"title":"Transforming the technical recruiting industry with JSON Schema",
"summary":"Learn how Manfred used JSON Schema to transform the technical recruiting industry.",
"logo": "/img/logos/manfred-color.svg",
"links":
{
"lang": "URL1",
"url": "/blog/posts/manfred-case-study"
}

},
{
"title":"How Postman uses JSON Schema",
"summary":"Learn how JSON Schema continues to be a crucial component of the Postman API Platform and the API ecosystem.",
"logo": "/img/logos/sponsors/Postman_logo-orange.svg",
"links":
{
"lang": "URL1",
"url": "/blog/posts/postman-case-study"
}

},
{
"title":"Using JSON Schema at Remote to scale forms and data validations",
"summary":"Using JSON Schema at Remote was the first step to solving data validation and form generation problems across all levels at Remote.",
"logo": "/img/logos/remote-logo.png",
"links":
{
"lang": "URL1",
"url": "/blog/posts/remote-case-study"
}

},
{
"title":"How Tyler Technologies reduced its client feedback loop with JSON Schema",
"summary":"Using JSON Schema at Tyler Technologies meant showing added value to clients could take minutes rather than days or in some cases weeks.",
"logo": "/img/logos/tyler-tech-logo.svg",
"links":
{
"lang": "URL1",
"url": "/blog/posts/tyler-technologies-case-study"
}

},
{
"title":"How the W3C Web of Things brings JSON Schema to the Internet of Things",
"summary":"Using JSON Schema at the W3C Web of Things to create an interoperability layer so that different IoT platforms, protocols and standards can operate together",
"logo": "/img/logos/wot-logo.png",
"links":
{
"lang": "URL1",
"url": "/blog/posts/w3c-wot-case-study"
}

"links": {
"lang": "URL1",
"url": "/blog/posts/github-case-study"
}
]
},
{
"title": "How 6 River Systems saves time and boosts collaboration with JSON Schema",
"summary": "Explore the powerful impact of JSON Schema on 6 River Systems' fulfillment operations. Discover how they enabled enhanced collaboration, time savings, and data quality assurance, propelling their successful scaling journey.",
"logo": "/img/logos/6river-logo.svg",
"links": {
"lang": "URL1",
"url": "/blog/posts/6-river-systems-case-study"
}
},
{
"title": "Transforming the technical recruiting industry with JSON Schema",
"summary": "Learn how Manfred used JSON Schema to transform the technical recruiting industry.",
"logo": "/img/logos/manfred-color.svg",
"links": {
"lang": "URL1",
"url": "/blog/posts/manfred-case-study"
}
},
{
"title": "How Postman uses JSON Schema",
"summary": "Learn how JSON Schema continues to be a crucial component of the Postman API Platform and the API ecosystem.",
"logo": "/img/logos/sponsors/Postman_logo-orange.svg",
"links": {
"lang": "URL1",
"url": "/blog/posts/postman-case-study"
}
},
{
"title": "Using JSON Schema at Remote to scale forms and data validations",
"summary": "Using JSON Schema at Remote was the first step to solving data validation and form generation problems across all levels at Remote.",
"logo": "/img/logos/remote-logo.png",
"links": {
"lang": "URL1",
"url": "/blog/posts/remote-case-study"
}
},
{
"title": "How Tyler Technologies reduced its client feedback loop with JSON Schema",
"summary": "Using JSON Schema at Tyler Technologies meant showing added value to clients could take minutes rather than days or in some cases weeks.",
"logo": "/img/logos/tyler-tech-logo.svg",
"links": {
"lang": "URL1",
"url": "/blog/posts/tyler-technologies-case-study"
}
},
{
"title": "How the W3C Web of Things brings JSON Schema to the Internet of Things",
"summary": "Using JSON Schema at the W3C Web of Things to create an interoperability layer so that different IoT platforms, protocols and standards can operate together",
"logo": "/img/logos/wot-logo.png",
"links": {
"lang": "URL1",
"url": "/blog/posts/w3c-wot-case-study"
}
}
]
98 changes: 49 additions & 49 deletions data/faq.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
[
{
"id": 1,
"question": "What is JSON Schema?",
"answer": "JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It defines the structure, data types, and constraints of JSON data.",
"category": "general"
},
{
"id": 2,
"question": "How do I create a simple JSON Schema?",
"answer": "You can create a simple JSON Schema using a JSON object with properties like 'type', 'properties', and 'required'. These define the data type, properties, and mandatory fields of your JSON document.",
"category": "general"
},
{
"id": 3,
"question": "What is the purpose of 'type' in JSON Schema?",
"answer": "The 'type' keyword specifies the data type of the JSON value. It can be 'string', 'number', 'object', 'array', 'boolean', 'null', or a combination of these.",
"category": "general"
},
{
"id": 4,
"question": "How can I define default values in a JSON Schema?",
"answer": "You can use the 'default' keyword to set a default value for a property in your JSON Schema. It provides a fallback value if the property is not present in the JSON document.",
"category": "general"
},
{
"id": 5,
"question": "What is the significance of 'required' in JSON Schema?",
"answer": "The 'required' keyword is an array that specifies which properties must be present in a JSON document. It enforces that these properties are not omitted.",
"category": "general"
},
{
"id": 6,
"question": "How can I validate a JSON document against a JSON Schema?",
"answer": "You can use various tools and libraries, such as AJV (Another JSON Schema Validator) in JavaScript, to validate a JSON document against a JSON Schema. These tools check if the document adheres to the specified schema rules.",
"category": "general"
},
{
"id": 7,
"question": "What is the difference between 'object' and 'array' types in JSON Schema?",
"answer": "In JSON Schema, 'object' is used to define an object with named properties, while 'array' is used to define an ordered list of values. 'object' contains key-value pairs, whereas 'array' contains elements identified by their index.",
"category": "general"
},
{
"id": 8,
"question": "Can I use JSON Schema to describe nested structures?",
"answer": "Yes, JSON Schema supports nested structures. You can define properties with their own JSON Schema, allowing you to describe complex hierarchical data.",
"category": "general"
}
]
{
"id": 1,
"question": "What is JSON Schema?",
"answer": "JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It defines the structure, data types, and constraints of JSON data.",
"category": "general"
},
{
"id": 2,
"question": "How do I create a simple JSON Schema?",
"answer": "You can create a simple JSON Schema using a JSON object with properties like 'type', 'properties', and 'required'. These define the data type, properties, and mandatory fields of your JSON document.",
"category": "general"
},
{
"id": 3,
"question": "What is the purpose of 'type' in JSON Schema?",
"answer": "The 'type' keyword specifies the data type of the JSON value. It can be 'string', 'number', 'object', 'array', 'boolean', 'null', or a combination of these.",
"category": "general"
},
{
"id": 4,
"question": "How can I define default values in a JSON Schema?",
"answer": "You can use the 'default' keyword to set a default value for a property in your JSON Schema. It provides a fallback value if the property is not present in the JSON document.",
"category": "general"
},
{
"id": 5,
"question": "What is the significance of 'required' in JSON Schema?",
"answer": "The 'required' keyword is an array that specifies which properties must be present in a JSON document. It enforces that these properties are not omitted.",
"category": "general"
},
{
"id": 6,
"question": "How can I validate a JSON document against a JSON Schema?",
"answer": "You can use various tools and libraries, such as AJV (Another JSON Schema Validator) in JavaScript, to validate a JSON document against a JSON Schema. These tools check if the document adheres to the specified schema rules.",
"category": "general"
},
{
"id": 7,
"question": "What is the difference between 'object' and 'array' types in JSON Schema?",
"answer": "In JSON Schema, 'object' is used to define an object with named properties, while 'array' is used to define an ordered list of values. 'object' contains key-value pairs, whereas 'array' contains elements identified by their index.",
"category": "general"
},
{
"id": 8,
"question": "Can I use JSON Schema to describe nested structures?",
"answer": "Yes, JSON Schema supports nested structures. You can define properties with their own JSON Schema, allowing you to describe complex hierarchical data.",
"category": "general"
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
"tailwindcss": "^3.3.5",
"typescript": "5.2.2"
}
}
}
Loading