Skip to content

Commit

Permalink
use struct
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 26, 2024
1 parent d8c8803 commit 56075f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions www/resources/examples/generic.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"definitions": {
"Student": {
"type": "object",
"type": "struct",
"properties": {
"matricleNumber": {
"type": "integer"
Expand All @@ -19,7 +19,7 @@
}
},
"Map": {
"type": "object",
"type": "struct",
"properties": {
"totalResults": {
"type": "integer"
Expand Down
2 changes: 1 addition & 1 deletion www/resources/examples/import.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"definitions": {
"Faculty": {
"type": "object",
"type": "struct",
"properties": {
"description": {
"type": "string"
Expand Down
8 changes: 4 additions & 4 deletions www/resources/template/developer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#Definitions">definitions</a>": {
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#StructType">Human</a>": {
"type": "object",
"type": "struct",
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#Properties">properties</a>": {
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#StringType">firstName</a>": {
"type": "string"
Expand All @@ -54,8 +54,8 @@
}
},
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#StructType">Student</a>": {
"$extends": "Human",
"type": "object",
"parent": "Human",
"type": "struct",
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#Properties">properties</a>": {
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#NumberType">matricleNumber</a>": {
"type": "integer"
Expand All @@ -69,7 +69,7 @@
}
},
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#StructType">Map</a>": {
"type": "object",
"type": "struct",
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#Properties">properties</a>": {
"<a href="<?php echo $router->getAbsolutePath([App\Controller\Specification::class, 'show']); ?>#NumberType">totalResults</a>": {
"type": "integer"
Expand Down
4 changes: 2 additions & 2 deletions www/resources/typeschema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"definitions": {
"Generate": {
"type": "object",
"type": "struct",
"properties": {
"namespace": {
"type": "string"
Expand All @@ -15,7 +15,7 @@
}
},
"Diff": {
"type": "object",
"type": "struct",
"properties": {
"left": {
"type": "string"
Expand Down

0 comments on commit 56075f0

Please sign in to comment.