Coder Social home page Coder Social logo

symphony-api-spec's Issues

Unable to swagger-gen rc48 spec due to String model overloading

Using the deprecated rc48 POD spec and Swagger v1.5.16

Swagger generation returns errors on String model being overridden within the spec itself.

[ERROR] ..../symphony-java-api/pod/target/generated-sources/swagger/src/main/java/org/symphonyoss/symphony/pod/model/CompanyCertInfo.java:[200,17] toString() in org.symphonyoss.symphony.pod.model.CompanyCertInfo cannot override toString() in java.lang.Object
return type org.symphonyoss.symphony.pod.model.String is not compatible with java.lang.String

In spec:

String:
type: string

Blast API sids list

According to the documentation, the list of sids for the blast API should be comma-separated. And, if the swagger looks like this:


// line 373, agent api (deprecated version)
       - name: sids
          description: A comma-separated list of Stream IDs
          in: formData
          required: true
          type: string

... all is well.

However, at the moment, the swagger seems to look for a list of strings, which doesn't appear to be supported in my version of Jersey:

       - name: sids
          description: A comma-separated list of Stream IDs
          in: formData
          required: true
          type: array
          items:
            type: string  // doesn't seem supported in Jersey?

Is this a mistake in the api, or intentional? It seems like it might be a mistake, given that the description asks for a comma-separated list.

/v1/message/search POST - no consumes type set

On about line 561 of agent-api-public-deprecated.yaml, there should be:

      consumes:
        - application/json

.. in order to be consistent with all the other api swagger definitions. This is causing problems for JAX-RS as it doesn't know how to marshall the body object for me.

thanks
Rob

Swagger Definitions

I've just raised this with Symphony support, but maybe this is this is the right place?

The V4Event specification published here: https://github.com/symphonyoss/symphony-api-spec/blob/master/agent/agent-api-public.yaml#L3821

Doesn't contain the SYMPHONYELEMENTSACTION field, and doesn't contain the object definitions to describe this payload:

"symphonyElementsAction": {
"actionStream": {
"streamId": "0YeiA-neZa1PrdHy1L82jX___pQjntU-dA"
},
"formStream": {
"streamId": "YuK1c2y2yuie6+UfQnjSPX///pQEn69idA=="
},
"formMessageId": "xtZqqBNGwLDkLuvuQTyjH3///pQENvjudA==5454",
"formId": "form_id",
"formValues": {
"action": "submit_button",
"name_01": "John",
"email_01": "[email protected]",
"country": "opt1",
"example_radio": "option_01",
"checkbox_1": "value01",
"checkbox_2": "value02",
"comment": "my comment"
}
}

Can someone take a look at the swagger definitions and update them please?

Feature Request: Schemas

Hi,

Can someone produce a Schema for checking MessageML/PresentationML? It appears that there is a lot of checking going on in the agent code, so perhaps this exists already and can be surfaced.

Reason being, it would allow client-side checking of messages before getting them refused from the agent.

thanks,
Rob

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.