Skip to content

Commit 16f2f32

Browse files
committed
modified-test-file-DocsHelp.cy.tsx
2 parents 57fd0ab + 9899bc7 commit 16f2f32

31 files changed

+1313
-82
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All types of contributions are encouraged and valued. See the [Table of Contents
66

77
If you don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation:
88
- Star the project on Github
9-
- Post on Twitter or Linkedin about JSON Schema `#jsonschema
9+
- Post on X or Linkedin about JSON Schema `#jsonschema
1010

1111
## Table of Contents
1212

INSTALLATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ git submodule update
4949

5050
### Setting Up Environment Variables
5151

52+
This step is optional. Environment variables are not required to run the website on your local development server.
53+
5254
1. Create a new `.env` file by copying the contents of the `.env.example` into `.env` file. Use this command:
5355
```
5456
cp .env.example .env

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Thanks goes to these wonderful people who contributed to this website:
8989

9090
<p align="left">
9191
<a href="https://json-schema.org/slack" target="blank" style="margin-right: 5px;"><img align="center" src="https://img.icons8.com/color/48/null/slack-new.png" alt="JSON Schema Slack" height="30" width="40" /></a>
92-
<a href="https://twitter.com/jsonschema" target="blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="JSON Schema Twitter" height="30" width="40" /></a>
92+
<a href="https://x.com/jsonschema" target="blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/twitter.svg" alt="JSON Schema Twitter" height="30" width="40" /></a>
9393
<a href="https://www.linkedin.com/company/jsonschema" target="blank" style="margin-right: 5px;"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="JSON Schema LinkedIn" height="30" width="40" /></a>
9494
<a href="https://www.youtube.com/@JSONSchemaOrgOfficial" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/youtube.svg" alt="JSON Schema YouTube" height="30" width="40" /></a>
9595
</p>

components/DocsHelp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface DocsHelpProps {
88

99
export function DocsHelp({ fileRenderType }: DocsHelpProps) {
1010
const router = useRouter();
11-
console.log(router.asPath)
11+
console.log(router.asPath);
1212
const [isFormOpen, setIsFormOpen] = useState(false);
1313
const [feedbackStatus, setFeedbackStatus] = useState('');
1414
const [isSubmitting, setIsSubmitting] = useState(false);

components/Layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,10 @@ const Footer = () => (
345345
</div>
346346
<div className=''>
347347
<a
348-
href='https://twitter.com/jsonschema'
348+
href='https://x.com/jsonschema'
349349
className='flex items-center text-white'
350350
>
351-
<img src='/img/logos/x-twitter.svg' className='w-4 h-4 mr-2' />
352-
Twitter
351+
<img src='/img/logos/x-twitter.svg' className='w-4 h-4 mr-2' />X
353352
</a>
354353
</div>
355354
<div className=''>

cypress/components/DocsHelp.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const FEEDBACK_FORM_GITHUB_SUCCESS_MESSAGE =
1919
// DocsHelp Component
2020
describe('DocsHelp Component', () => {
2121
const extractPathWithoutFragment = (path: any) => path.split('#')[0];
22-
let mockRouter:MockRouter;
22+
let mockRouter: MockRouter;
2323
beforeEach(() => {
24-
const markdownFile = "indexmd";
24+
const markdownFile = 'indexmd';
2525
mockRouter = mockNextRouter();
2626
cy.viewport(1200, 800);
27-
cy.mount(<DocsHelp fileRenderType={markdownFile}/>)
27+
cy.mount(<DocsHelp fileRenderType={markdownFile} />);
2828
});
2929

3030
it('should render the component correctly', () => {

data/keywords.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,22 @@
280280
title: Range
281281
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-maximum'
282282
title: Draft 2020-12
283+
- name: maxItems
284+
vocabulary: [Validation]
285+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/maxitems/'
286+
links:
287+
- url: 'https://json-schema.org/understanding-json-schema/reference/array#length'
288+
title: Length
289+
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-maxitems'
290+
title: Draft 2020-12
291+
- name: maxLength
292+
vocabulary: [Validation]
293+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/maxlength'
294+
links:
295+
- url: 'https://json-schema.org/understanding-json-schema/reference/string#length'
296+
title: Length
297+
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-maxlength'
298+
title: Draft 2020-12
283299
- name: maxProperties
284300
vocabulary: [Validation]
285301
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/maxproperties'
@@ -290,6 +306,24 @@
290306
title: maxProperties
291307
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-maxproperties'
292308
title: Draft 2020-12
309+
- name: minContains
310+
vocabulary: [Validation]
311+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/mincontains'
312+
links:
313+
- url: 'https://json-schema.org/understanding-json-schema/reference/array#mincontains-maxcontains'
314+
title: Mincontains / Maxcontains
315+
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-mincontains'
316+
title: Draft 2020-12
317+
- name: minimum
318+
vocabulary: [Validation]
319+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/minimum'
320+
links:
321+
- url: 'https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema'
322+
title: Modeling a file system with JSON Schema
323+
- url: 'https://json-schema.org/understanding-json-schema/reference/numeric#range'
324+
title: Range
325+
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-minimum'
326+
title: Draft 2020-12
293327
- name: minItems
294328
vocabulary: [Validation]
295329
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/validation/minitems'
@@ -368,6 +402,14 @@
368402
title: Uniqueness
369403
- url: 'https://json-schema.org/draft/2020-12/json-schema-validation#name-uniqueitems'
370404
title: Draft 2020-12
405+
- name: format
406+
vocabulary: [Format Annotation]
407+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/format-annotation/format/'
408+
links:
409+
- url: 'https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-00#rfc.section.7.2.1'
410+
title: Draft 2020-12
411+
- url: 'https://www.learnjsonschema.com/2020-12/format-annotation/'
412+
title: Format Annotation
371413
- name: contentEncoding
372414
vocabulary: [Content]
373415
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/content/contentencoding'
@@ -468,3 +510,11 @@
468510
title: Unevaluated Properties
469511
- url: 'https://json-schema.org/draft/2020-12/json-schema-core#name-unevaluatedproperties'
470512
title: Draft 2020-12
513+
- name: format
514+
vocabulary: [Format Assertion]
515+
learnjsonschemalink: 'https://www.learnjsonschema.com/2020-12/format-assertion/format/'
516+
links:
517+
- url: 'https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-00#rfc.section.7.2.2'
518+
title: Draft 2020-12
519+
- url: 'https://www.learnjsonschema.com/2020-12/format-assertion/'
520+
title: Format Assertion

data/tooling-data.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@
625625
source: 'https://github.com/karenetheridge/JSON-Schema-Modern'
626626
homepage: 'https://metacpan.org/dist/JSON-Schema-Modern'
627627
supportedDialects:
628-
draft: ['7', '2019-09', '2020-12']
629-
lastUpdated: '2022-08-31'
628+
draft: ['4', '6', '7', '2019-09', '2020-12']
629+
lastUpdated: '2024-11-08'
630630

631631
- name: JSON::Schema::Tiny
632632
description: 'Validate data against a schema, minimally'

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@docsearch/react": "3.6.1",
3030
"@types/jsonpath": "^0.2.4",
31-
"axios": "1.7.4",
31+
"axios": "1.7.7",
3232
"babel-loader": "^9.1.3",
3333
"classnames": "^2.5.1",
3434
"feed": "^4.2.2",
@@ -46,7 +46,7 @@
4646
"node-ical": "0.19.0",
4747
"react": "18.3.1",
4848
"react-dom": "18.3.1",
49-
"react-syntax-highlighter": "^15.5.0",
49+
"react-syntax-highlighter": "^15.6.1",
5050
"react-text-truncate": "^0.19.0",
5151
"reading-time": "^1.5.0",
5252
"slate": "^0.103.0",
@@ -58,7 +58,7 @@
5858
},
5959
"devDependencies": {
6060
"@babel/core": "^7.25.2",
61-
"@babel/preset-env": "^7.25.3",
61+
"@babel/preset-env": "^7.26.0",
6262
"@cypress/code-coverage": "^3.13.2",
6363
"@next/eslint-plugin-next": "^14.0.1",
6464
"@svgr/webpack": "^8.1.0",
@@ -88,7 +88,7 @@
8888
"eslint-plugin-react": "^7.35.0",
8989
"eslint-plugin-react-hooks": "^4.4.0",
9090
"husky": "^9.1.6",
91-
"nyc": "^17.0.0",
91+
"nyc": "^17.1.0",
9292
"postcss": "^8.4.41",
9393
"prettier": "3.3.3",
9494
"tailwindcss": "^3.3.5",

0 commit comments

Comments
 (0)