Skip to content

Commit 1daa218

Browse files
committed
wip
1 parent aaad224 commit 1daa218

6 files changed

Lines changed: 13 additions & 101 deletions

File tree

docs/json-schema/installation.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@ icon: 'terminal'
1313

1414
<Steps>
1515
<Step title="Install via Composer">
16-
Install the package using Composer with one of these commands:
17-
1816
```bash
1917
composer require cortexphp/json-schema
2018
```
21-
22-
<Check>
23-
Verify the package was installed by running: `composer show cortexphp/json-schema`
24-
</Check>
2519
</Step>
2620

2721
<Step title="Set Default Version (Optional)">
@@ -72,11 +66,3 @@ If you're contributing to the package or want to run tests:
7266
## Next Steps
7367

7468
Now that you have the package installed, you're ready to create your first JSON Schema:
75-
76-
<Card
77-
title="Quick Start Guide"
78-
icon="bolt"
79-
href="/quickstart"
80-
>
81-
Learn how to create and validate schemas with practical examples
82-
</Card>

docs/json-schema/introduction.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,3 @@ The package defaults to Draft 2020-12 for the latest features. Use Draft-07 for
180180
| `unevaluatedProperties` ||||
181181
| `dependentSchemas` ||||
182182
| `prefixItems` ||||
183-
184-
## Next Steps
185-
186-
<CardGroup cols={2}>
187-
<Card
188-
title="Get Started"
189-
icon="rocket"
190-
href="/json-schema/installation"
191-
>
192-
Install the package and create your first schema
193-
</Card>
194-
<Card
195-
title="Quick Start Guide"
196-
icon="bolt"
197-
href="/json-schema/quickstart"
198-
>
199-
Learn the basics with practical examples
200-
</Card>
201-
</CardGroup>

docs/json-schema/mcp-server.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -277,22 +277,3 @@ The MCP server provides access to comprehensive documentation, code examples, an
277277
</Accordion>
278278
</AccordionGroup>
279279

280-
## Additional Resources
281-
282-
<CardGroup cols={2}>
283-
<Card
284-
title="CortexPHP Documentation"
285-
icon="book"
286-
href="https://docs.cortexphp.com"
287-
>
288-
Browse the complete CortexPHP documentation
289-
</Card>
290-
<Card
291-
title="MCP Protocol"
292-
icon="link"
293-
href="https://modelcontextprotocol.io"
294-
>
295-
Learn more about the Model Context Protocol
296-
</Card>
297-
</CardGroup>
298-

docs/json-schema/quickstart.mdx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ Use `toArray()` when you need to programmatically work with the schema structure
172172
$usernameSchema->isValid('john-doe'); // false (contains hyphen)
173173
```
174174

175-
<Check>
175+
<Tip>
176176
String schemas support patterns, length constraints, and format validation.
177-
</Check>
177+
</Tip>
178178
</Tab>
179179

180180
<Tab title="Array Validation">
@@ -193,9 +193,9 @@ Use `toArray()` when you need to programmatically work with the schema structure
193193
$tagsSchema->isValid([]); // false (too few items)
194194
```
195195

196-
<Check>
196+
<Tip>
197197
Array schemas can validate item types, count limits, and uniqueness.
198-
</Check>
198+
</Tip>
199199
</Tab>
200200

201201
<Tab title="Nested Objects">
@@ -215,9 +215,9 @@ Use `toArray()` when you need to programmatically work with the schema structure
215215
);
216216
```
217217

218-
<Check>
218+
<Tip>
219219
Object schemas support unlimited nesting and property requirements.
220-
</Check>
220+
</Tip>
221221
</Tab>
222222
</Tabs>
223223

@@ -227,7 +227,7 @@ You can also use schema classes directly instead of the factory:
227227

228228
<CodeGroup>
229229

230-
```php Factory Method (Recommended)
230+
```php Factory Method
231231
use Cortex\JsonSchema\Schema;
232232

233233
$schema = Schema::string('name')
@@ -362,7 +362,3 @@ Schema::setDefaultVersion(SchemaVersion::Draft_07); // For maximum compatibility
362362
Master data validation and error handling techniques
363363
</Card>
364364
</CardGroup>
365-
366-
<Tip>
367-
The Schema class provides the most convenient way to create schemas. All examples in this documentation use the factory methods unless otherwise specified.
368-
</Tip>

docs/json-schema/schema-types/array.mdx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -535,22 +535,3 @@ try {
535535
Validate complex nested structures like menu trees or organizational hierarchies.
536536
</Card>
537537
</CardGroup>
538-
539-
## Next Steps
540-
541-
<CardGroup cols={2}>
542-
<Card
543-
title="Object Schema"
544-
icon="cube"
545-
href="/schema-types/object"
546-
>
547-
Learn about validating complex object structures
548-
</Card>
549-
<Card
550-
title="Advanced Array Features"
551-
icon="star"
552-
href="/advanced/unevaluated-properties"
553-
>
554-
Explore advanced array validation features in modern JSON Schema versions
555-
</Card>
556-
</CardGroup>

docs/json-schema/schema-types/object.mdx

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,12 @@ $schema->isValid([
519519
## Common Use Cases
520520

521521
<CardGroup cols={2}>
522+
<Card title="AI Structured Output" icon="sparkles">
523+
Define schemas for LLM responses to ensure consistent, parseable structured data from AI models.
524+
</Card>
525+
<Card title="AI Tool Calling" icon="wrench">
526+
Specify function parameters for AI agents and assistants to enable reliable tool invocation.
527+
</Card>
522528
<Card title="API Request/Response" icon="api">
523529
Validate JSON API payloads with structured data and specific field requirements.
524530
</Card>
@@ -532,22 +538,3 @@ $schema->isValid([
532538
Validate data models before persistence with property and constraint validation.
533539
</Card>
534540
</CardGroup>
535-
536-
## Next Steps
537-
538-
<CardGroup cols={2}>
539-
<Card
540-
title="Array Schema"
541-
icon="list"
542-
href="/schema-types/array"
543-
>
544-
Learn about array validation and nested data structures
545-
</Card>
546-
<Card
547-
title="Advanced Object Features"
548-
icon="star"
549-
href="/advanced/pattern-properties"
550-
>
551-
Explore pattern properties and advanced object validation
552-
</Card>
553-
</CardGroup>

0 commit comments

Comments
 (0)