+1 to validating it at the backend.
Also, there will be a challenge to inform the publisher with the validation
results, both success and detailed errors.   Also closing the import window
popup after a successful import would be nice.

Thanks!

Colin Roy-Ehri
Software Engineer
*WSO2, Inc. : wso2.com <http://wso2.com/>*
*Mobile*          : 812-219-6517

On Sat, Mar 21, 2015 at 8:40 AM, Madawa Soysa <mada...@wso2.com> wrote:

> Hi,
>
> Check the project[1] <https://github.com/swagger-api/swagger-parser> as
> well. This is not a json-schema validator but swagger specific parser which
> creates a Java POJO from a swagger definition. Includes a Swagger migration
> tool from Swagger 1.0, 1.1 and 1.2 to Swagger 2.0.
>
> [1] - https://github.com/swagger-api/swagger-parser
> <https://github.com/swagger-api/swagger-parser>
>
> On 20 March 2015 at 16:28, Madusanka Premaratne <madusan...@wso2.com>
> wrote:
>
>> Hi Vishanth,
>> Thanks for the response. I did a research on fge/json-schema-validator
>> and seems like it is not maintaining.
>> Anyhow I will apply it and check whether it is functioning as expected.
>> Thanks,
>>
>> On Fri, Mar 20, 2015 at 2:46 PM, Vishanth Balasubramaniam <
>> vishan...@wso2.com> wrote:
>>
>>> Hi Madusanka,
>>>
>>> I too think the right approach is to validate at the backend.
>>>
>>> I came across this json schema validator project [1] sometime back,
>>> check if this is useful for you in some way.
>>>
>>> [1] - https://github.com/fge/json-schema-validator
>>>
>>> Regards,
>>> Vishanth
>>>
>>> On Fri, Mar 20, 2015 at 12:36 PM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>> As you all know APIM uses YAML and Swagger. We have already done YAML
>>>> validation part and will be there as real time yaml syntax validator in the
>>>> upcoming release.
>>>>
>>>> ​In the validation of swagger we can either validate swagger at the
>>>> front-end using javascript or validate at the backend using json schema
>>>> validator.
>>>> According to the offline discussions I had with Colin and Jo, it is
>>>> more suitable to validate it at the backend, because there are two
>>>> ways(write/import) to feed a swagger doc.
>>>>
>>>> Does anyone worked with a json schema validator which can be used to
>>>> fulfil our need?
>>>>
>>>> Feedbacks and suggestions for this improvement would be appreciated.
>>>>
>>>> ​Thanks,​
>>>>
>>>> --
>>>> *Madusanka Premaratne* | Associate Software Engineer
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>>
>>>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>>>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>>> <http://@rmmpremaratne>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Vishanth Balasubramaniam*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94771737718*
>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>
>>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Madawa Soysa
> Software Engineering Intern | WS*O₂* Inc. <http://wso2.com>
>
> Mobile: +94 75 812 0726 | Email: mada...@wso2.com
> LinkedIn <http://lk.linkedin.com/in/madawasoysa> | Twitter
> <https://twitter.com/madawa_rc> | Tumblr <http://madawas.tumblr.com>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to