Giter Site home page Giter Site logo

Comments (4)

jampukka avatar jampukka commented on July 30, 2024

This should be fixed by #71 (at least according to my manual and integration tests)

from hakunapi.

teezip avatar teezip commented on July 30, 2024

Thanks. Tested by setting up demo service on a local machine from features.war build from latest code in main (that should have #71 merged). The demo service on a local machine give Open API document that is OK according to Swagger editor, but still one error: Structural error at info.contact.email because by default email address is empty string '' in demo conf.

This is not a bug in Hakunapi, but in configuration of demo application.

When removing api.contact.email from addresses.properties it results in Open API document with info.contact.email to be 'N/A'. Swagger editor complains about this too.

Maybe it would be better to leave an optional info.contact.email element out of Open API output if not set in conf file?

Anyway when setting api.contact.email in conf as a valid formatted email address then demo service returns an Open API document that can be viewed without complaints in Swagger editor too.

from hakunapi.

teezip avatar teezip commented on July 30, 2024

Maybe instructions in https://github.com/nlsfi/hakunapi/tree/main/examples/finnish_addresses in section "Preparing for production" could ask installers of demo service to set their contact information (including that info.contact.email) to get Open API document that Swagger Editor swallows too...

from hakunapi.

jampukka avatar jampukka commented on July 30, 2024

Allowed null/missing contact information to omit the contact element from OpenAPI description altogether in #75. Changed finnish_addresses example to reflect that and added a note about setting proper contact values in "Preparing for production" section

from hakunapi.

Related Issues (20)

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.