Contributions
XML response with array of objects in OpenAPI not showing tag names
i am sorry i am not sure that this is the right forum, but hope anyone can help me: i am trying to generate an array of object, with the following path: paths: /book/: get: tags: - "Help" summary: "show my book" produces: - "application/xml" - "application/json" parameters: [] responses: "200": description: "successful operation" schema: type: "array" xml: name: Book items: $ref: "#/definitions/Book" "400": description: "Invalid status value" x-swagger-router-controller: "swagger_server.controllers.book_controller" and the following definitions: definitions: BookAuthor: type: object properties: Author: type: string Bio: type: string xml: attribute: true xml: name: Author Book: type: object properties: Title: type: string Description: type: "string" BookAuthors: type: array items: $ref: "#/definitions/BookAuthor" xml: name: BookAuthors wrapped: true xml: name: "MyBook" example: Title: "Name of the book" description: "Book Description" BookAuthors: [["Author 1", "Author 1 Bio"], ["Author 2", "Author 2 Bio"]] The xml showing is missing the Author tags, being displayed as indexes (0,1), here what i am getting: <?xml version="1.0" encoding="UTF-8"?> <MyBook> <Title>Name of the book</Title> <description>Book Description</description> <BookAuthors> <Author> <0>Author 1</0> <--- Here showing <0> instead of <Author> <1>Author 1 Bio</1> <--- Here showing <1> instead of <Bio> </Author> <Author> <0>Author 2</0> <1>Author 2 Bio</1> </Author> </BookAuthors> </MyBook> How can i get the <Author></Author> & <Bio></Bio> to be displayed?3 years agoPlace Community Off-TopicCommunity Off-Topic1.4KViews0likes1Commentdistributed testing of Connected Applications
Hi ... What is the best way to Test a "ping pong test"?. The idea is: i have 2 slaves(Slave1, Slave2) and 1 master (Master1). on each slave there is an Application, which will send a message to the other slave onMessageReceive. so: ///// Slave1.onMessageReceive += SEND MSG BACK TO SLAVE 2 And Log To TC that msg received Slave2.onMessageReceive += SEND MSG BACK TO SLAVE 1And Log To TC that msg received ///// Slave1 --MSG--> Slave2 Slave2 --MSG--> Slave1 ... and so on. now, The master should start the 2 application on the slaves, and trigger the first send msg event. my question is: what is the best way to realise this kind of tests ? also, how would i tell the Slaves to log back to TC ? at the moment i created a job which has 2 tasks which will start my applications, but they will only launch the applications on the slaves and then stop directly. also, i don`t know how to log back to TC when an application receive a message ? iam using VS2010 and C# please check my TC Project. thanks8.6KViews0likes1Comment