GithubHelp home page GithubHelp logo

New schema save fails about horreum HOT 8 CLOSED

hyperfoil avatar hyperfoil commented on August 11, 2024
New schema save fails

from horreum.

Comments (8)

johnaohara avatar johnaohara commented on August 11, 2024

{BEARER_TOKEN} is a correct token, I just omitted it from the output

from horreum.

rvansa avatar rvansa commented on August 11, 2024

Are you sure you're running latest version 59a2b27 ? I've just tried to create a new schema in scalelab and it worked without issues.

from horreum.

johnaohara avatar johnaohara commented on August 11, 2024

Yes, I am running;

commit 59a2b27e5fe182a349bb9134dfe40a24333d2eb0 (HEAD -> master, origin/master, origin/HEAD)
Author: Radim Vansa <[email protected]>
Date:   Wed Apr 29 11:46:39 2020 +0200

from horreum.

rvansa avatar rvansa commented on August 11, 2024

Okay, I can reproduce with this request (not from UI), investigating...

from horreum.

rvansa avatar rvansa commented on August 11, 2024

It seems this is a bug in org.eclipse.yasson when deserializing false into custom object; the parser mistakenly jumps one level down in the object and therefore your JSON is interpretted as

{
   "name": "...",
   "uri": "...",
   "description": "...",
   "schema": {
      "owner": "...",
      "access": "...",
   }
}

from horreum.

rvansa avatar rvansa commented on August 11, 2024

I've filed quarkusio/quarkus#9111

Have did you get the schema: false in the UI? I get that when I explicitly change the contents of the text area to false, but if I wipe it out completely it sends null.

from horreum.

johnaohara avatar johnaohara commented on August 11, 2024

The contents of the text area was a json schema, will try with an empty schema and see what happens

from horreum.

rvansa avatar rvansa commented on August 11, 2024

Closing here as it doesn't seem to be fixable in Horreum/yaup at this moment. Please reopen if you figure out when does UI pass false for schema.

from horreum.

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.