diff --git a/tests/Generator/Client/resource/typescript/Entry.ts b/tests/Generator/Client/resource/typescript/Entry.ts index b50aaa0..29fcf71 100644 --- a/tests/Generator/Client/resource/typescript/Entry.ts +++ b/tests/Generator/Client/resource/typescript/Entry.ts @@ -9,3 +9,4 @@ export interface Entry { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript/EntryCollection.ts b/tests/Generator/Client/resource/typescript/EntryCollection.ts index 1f8e50b..25366fd 100644 --- a/tests/Generator/Client/resource/typescript/EntryCollection.ts +++ b/tests/Generator/Client/resource/typescript/EntryCollection.ts @@ -4,6 +4,8 @@ */ import {Entry} from "./Entry"; + export interface EntryCollection { entry?: Array } + diff --git a/tests/Generator/Client/resource/typescript/EntryCreate.ts b/tests/Generator/Client/resource/typescript/EntryCreate.ts index a74a58c..5bebb7d 100644 --- a/tests/Generator/Client/resource/typescript/EntryCreate.ts +++ b/tests/Generator/Client/resource/typescript/EntryCreate.ts @@ -9,3 +9,4 @@ export interface EntryCreate { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript/EntryDelete.ts b/tests/Generator/Client/resource/typescript/EntryDelete.ts index 6094cb6..17f3749 100644 --- a/tests/Generator/Client/resource/typescript/EntryDelete.ts +++ b/tests/Generator/Client/resource/typescript/EntryDelete.ts @@ -9,3 +9,4 @@ export interface EntryDelete { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript/EntryMessage.ts b/tests/Generator/Client/resource/typescript/EntryMessage.ts index 3c733c2..c9d882b 100644 --- a/tests/Generator/Client/resource/typescript/EntryMessage.ts +++ b/tests/Generator/Client/resource/typescript/EntryMessage.ts @@ -7,3 +7,4 @@ export interface EntryMessage { success?: boolean message?: string } + diff --git a/tests/Generator/Client/resource/typescript/EntryPatch.ts b/tests/Generator/Client/resource/typescript/EntryPatch.ts index ff4e152..57bf6a9 100644 --- a/tests/Generator/Client/resource/typescript/EntryPatch.ts +++ b/tests/Generator/Client/resource/typescript/EntryPatch.ts @@ -9,3 +9,4 @@ export interface EntryPatch { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript/EntryUpdate.ts b/tests/Generator/Client/resource/typescript/EntryUpdate.ts index 5c68b7e..157e5fb 100644 --- a/tests/Generator/Client/resource/typescript/EntryUpdate.ts +++ b/tests/Generator/Client/resource/typescript/EntryUpdate.ts @@ -9,3 +9,4 @@ export interface EntryUpdate { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript_collection/Entry.ts b/tests/Generator/Client/resource/typescript_collection/Entry.ts index b50aaa0..29fcf71 100644 --- a/tests/Generator/Client/resource/typescript_collection/Entry.ts +++ b/tests/Generator/Client/resource/typescript_collection/Entry.ts @@ -9,3 +9,4 @@ export interface Entry { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript_collection/EntryCollection.ts b/tests/Generator/Client/resource/typescript_collection/EntryCollection.ts index 1f8e50b..25366fd 100644 --- a/tests/Generator/Client/resource/typescript_collection/EntryCollection.ts +++ b/tests/Generator/Client/resource/typescript_collection/EntryCollection.ts @@ -4,6 +4,8 @@ */ import {Entry} from "./Entry"; + export interface EntryCollection { entry?: Array } + diff --git a/tests/Generator/Client/resource/typescript_collection/EntryCreate.ts b/tests/Generator/Client/resource/typescript_collection/EntryCreate.ts index a74a58c..5bebb7d 100644 --- a/tests/Generator/Client/resource/typescript_collection/EntryCreate.ts +++ b/tests/Generator/Client/resource/typescript_collection/EntryCreate.ts @@ -9,3 +9,4 @@ export interface EntryCreate { title?: string date?: string } + diff --git a/tests/Generator/Client/resource/typescript_collection/EntryMessage.ts b/tests/Generator/Client/resource/typescript_collection/EntryMessage.ts index 3c733c2..c9d882b 100644 --- a/tests/Generator/Client/resource/typescript_collection/EntryMessage.ts +++ b/tests/Generator/Client/resource/typescript_collection/EntryMessage.ts @@ -7,3 +7,4 @@ export interface EntryMessage { success?: boolean message?: string } + diff --git a/tests/Generator/Client/resource/typescript_import/MySchema.ts b/tests/Generator/Client/resource/typescript_import/MySchema.ts index f50ce9c..6326594 100644 --- a/tests/Generator/Client/resource/typescript_import/MySchema.ts +++ b/tests/Generator/Client/resource/typescript_import/MySchema.ts @@ -4,6 +4,8 @@ */ import {MyType} from "./../foo/MyType"; + export interface MySchema { foo?: MyType } + diff --git a/tests/Generator/Client/resource/typescript_test/TestMapObject.ts b/tests/Generator/Client/resource/typescript_test/TestMapObject.ts index 1176b42..9c89eee 100644 --- a/tests/Generator/Client/resource/typescript_test/TestMapObject.ts +++ b/tests/Generator/Client/resource/typescript_test/TestMapObject.ts @@ -4,5 +4,7 @@ */ import {TestObject} from "./TestObject"; + export interface TestMapObject extends Record { } + diff --git a/tests/Generator/Client/resource/typescript_test/TestMapScalar.ts b/tests/Generator/Client/resource/typescript_test/TestMapScalar.ts index f8c59c7..a858a02 100644 --- a/tests/Generator/Client/resource/typescript_test/TestMapScalar.ts +++ b/tests/Generator/Client/resource/typescript_test/TestMapScalar.ts @@ -5,3 +5,4 @@ export interface TestMapScalar extends Record { } + diff --git a/tests/Generator/Client/resource/typescript_test/TestObject.ts b/tests/Generator/Client/resource/typescript_test/TestObject.ts index 659d10f..9759730 100644 --- a/tests/Generator/Client/resource/typescript_test/TestObject.ts +++ b/tests/Generator/Client/resource/typescript_test/TestObject.ts @@ -7,3 +7,4 @@ export interface TestObject { id?: number name?: string } + diff --git a/tests/Generator/Client/resource/typescript_test/TestRequest.ts b/tests/Generator/Client/resource/typescript_test/TestRequest.ts index 7c38e0c..abc1876 100644 --- a/tests/Generator/Client/resource/typescript_test/TestRequest.ts +++ b/tests/Generator/Client/resource/typescript_test/TestRequest.ts @@ -6,6 +6,7 @@ import {TestObject} from "./TestObject"; import {TestMapScalar} from "./TestMapScalar"; import {TestMapObject} from "./TestMapObject"; + export interface TestRequest { int?: number float?: number @@ -20,3 +21,4 @@ export interface TestRequest { mapObject?: TestMapObject object?: TestObject } + diff --git a/tests/Generator/Client/resource/typescript_test/TestResponse.ts b/tests/Generator/Client/resource/typescript_test/TestResponse.ts index f560e24..1829f67 100644 --- a/tests/Generator/Client/resource/typescript_test/TestResponse.ts +++ b/tests/Generator/Client/resource/typescript_test/TestResponse.ts @@ -5,6 +5,7 @@ import {TestMapScalar} from "./TestMapScalar"; import {TestRequest} from "./TestRequest"; + export interface TestResponse { args?: TestMapScalar data?: string @@ -14,3 +15,4 @@ export interface TestResponse { json?: TestRequest method?: string } + diff --git a/tests/Generator/Markup/resource/client.md b/tests/Generator/Markup/resource/client.md index d6cd4ed..a5a3b74 100644 --- a/tests/Generator/Markup/resource/client.md +++ b/tests/Generator/Markup/resource/client.md @@ -6,6 +6,7 @@ client.delete(name: string, type: string): void client.patch(name: string, type: string, payload: Array): Array throws EntryMessage, Array + interface EntryCollection { entry?: Array } @@ -49,3 +50,4 @@ interface EntryPatch { title?: string date?: string } + diff --git a/tests/Generator/Markup/resource/client_collection.md b/tests/Generator/Markup/resource/client_collection.md index ccb2cb8..61a21a5 100644 --- a/tests/Generator/Markup/resource/client_collection.md +++ b/tests/Generator/Markup/resource/client_collection.md @@ -7,6 +7,7 @@ client.bar().find(foo: string): EntryCollection client.bar().put(payload: EntryCreate): EntryMessage + interface EntryCollection { entry?: Array } @@ -29,3 +30,4 @@ interface EntryCreate { title?: string date?: string } + diff --git a/tests/Generator/Markup/resource/markdown.md b/tests/Generator/Markup/resource/markdown.md index 7ae4f31..b8d80de 100644 --- a/tests/Generator/Markup/resource/markdown.md +++ b/tests/Generator/Markup/resource/markdown.md @@ -64,6 +64,7 @@ "entry": Array (Entry), }
FieldDescription
entryArray (Entry)
+

Entry

{
   "id": Integer,
   "userId": Integer,
@@ -71,11 +72,13 @@
   "date": String (date-time),
 }
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)
+

EntryMessage

{
   "success": Boolean,
   "message": String,
 }
FieldDescription
successBoolean
messageString
+

EntryCreate

{
   "id": Integer,
   "userId": Integer,
@@ -83,6 +86,7 @@
   "date": String (date-time),
 }
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)
+

EntryUpdate

{
   "id": Integer,
   "userId": Integer,
@@ -90,6 +94,7 @@
   "date": String (date-time),
 }
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)
+

EntryDelete

{
   "id": Integer,
   "userId": Integer,
@@ -97,9 +102,11 @@
   "date": String (date-time),
 }
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)
+

EntryPatch

{
   "id": Integer,
   "userId": Integer,
   "title": String,
   "date": String (date-time),
 }
FieldDescription
idInteger
userIdInteger
titleString
dateString (date-time)
+ diff --git a/tests/Generator/Server/resource/typescript/src/dto/Entry.ts b/tests/Generator/Server/resource/typescript/src/dto/Entry.ts index b50aaa0..29fcf71 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/Entry.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/Entry.ts @@ -9,3 +9,4 @@ export interface Entry { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryCollection.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryCollection.ts index 1f8e50b..25366fd 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryCollection.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryCollection.ts @@ -4,6 +4,8 @@ */ import {Entry} from "./Entry"; + export interface EntryCollection { entry?: Array } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryCreate.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryCreate.ts index a74a58c..5bebb7d 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryCreate.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryCreate.ts @@ -9,3 +9,4 @@ export interface EntryCreate { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryDelete.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryDelete.ts index 6094cb6..17f3749 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryDelete.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryDelete.ts @@ -9,3 +9,4 @@ export interface EntryDelete { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryMessage.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryMessage.ts index 3c733c2..c9d882b 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryMessage.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryMessage.ts @@ -7,3 +7,4 @@ export interface EntryMessage { success?: boolean message?: string } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryPatch.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryPatch.ts index ff4e152..57bf6a9 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryPatch.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryPatch.ts @@ -9,3 +9,4 @@ export interface EntryPatch { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript/src/dto/EntryUpdate.ts b/tests/Generator/Server/resource/typescript/src/dto/EntryUpdate.ts index 5c68b7e..157e5fb 100644 --- a/tests/Generator/Server/resource/typescript/src/dto/EntryUpdate.ts +++ b/tests/Generator/Server/resource/typescript/src/dto/EntryUpdate.ts @@ -9,3 +9,4 @@ export interface EntryUpdate { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript_complex/src/dto/Entry.ts b/tests/Generator/Server/resource/typescript_complex/src/dto/Entry.ts index b50aaa0..29fcf71 100644 --- a/tests/Generator/Server/resource/typescript_complex/src/dto/Entry.ts +++ b/tests/Generator/Server/resource/typescript_complex/src/dto/Entry.ts @@ -9,3 +9,4 @@ export interface Entry { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCollection.ts b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCollection.ts index 1f8e50b..25366fd 100644 --- a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCollection.ts +++ b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCollection.ts @@ -4,6 +4,8 @@ */ import {Entry} from "./Entry"; + export interface EntryCollection { entry?: Array } + diff --git a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCreate.ts b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCreate.ts index a74a58c..5bebb7d 100644 --- a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCreate.ts +++ b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryCreate.ts @@ -9,3 +9,4 @@ export interface EntryCreate { title?: string date?: string } + diff --git a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryMessage.ts b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryMessage.ts index 3c733c2..c9d882b 100644 --- a/tests/Generator/Server/resource/typescript_complex/src/dto/EntryMessage.ts +++ b/tests/Generator/Server/resource/typescript_complex/src/dto/EntryMessage.ts @@ -7,3 +7,4 @@ export interface EntryMessage { success?: boolean message?: string } +