From 56075f090bc00c50ca8bc5032bc88ee5ec5246ae Mon Sep 17 00:00:00 2001 From: Christoph Kappestein Date: Sun, 27 Oct 2024 00:26:43 +0200 Subject: [PATCH] use struct --- www/resources/examples/generic.json | 4 ++-- www/resources/examples/import.json | 2 +- www/resources/template/developer.php | 8 ++++---- www/resources/typeschema.json | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/www/resources/examples/generic.json b/www/resources/examples/generic.json index 74f7feb..23ef1d5 100644 --- a/www/resources/examples/generic.json +++ b/www/resources/examples/generic.json @@ -1,7 +1,7 @@ { "definitions": { "Student": { - "type": "object", + "type": "struct", "properties": { "matricleNumber": { "type": "integer" @@ -19,7 +19,7 @@ } }, "Map": { - "type": "object", + "type": "struct", "properties": { "totalResults": { "type": "integer" diff --git a/www/resources/examples/import.json b/www/resources/examples/import.json index a19257e..647f864 100644 --- a/www/resources/examples/import.json +++ b/www/resources/examples/import.json @@ -4,7 +4,7 @@ }, "definitions": { "Faculty": { - "type": "object", + "type": "struct", "properties": { "description": { "type": "string" diff --git a/www/resources/template/developer.php b/www/resources/template/developer.php index e3a338f..cf626f4 100644 --- a/www/resources/template/developer.php +++ b/www/resources/template/developer.php @@ -40,7 +40,7 @@ }, "definitions": { "Human": { - "type": "object", + "type": "struct", "properties": { "firstName": { "type": "string" @@ -54,8 +54,8 @@ } }, "Student": { - "$extends": "Human", - "type": "object", + "parent": "Human", + "type": "struct", "properties": { "matricleNumber": { "type": "integer" @@ -69,7 +69,7 @@ } }, "Map": { - "type": "object", + "type": "struct", "properties": { "totalResults": { "type": "integer" diff --git a/www/resources/typeschema.json b/www/resources/typeschema.json index 184d972..b2cd9e7 100644 --- a/www/resources/typeschema.json +++ b/www/resources/typeschema.json @@ -1,7 +1,7 @@ { "definitions": { "Generate": { - "type": "object", + "type": "struct", "properties": { "namespace": { "type": "string" @@ -15,7 +15,7 @@ } }, "Diff": { - "type": "object", + "type": "struct", "properties": { "left": { "type": "string"