helm-schema
helm-schema copied to clipboard
Cannot import a ref which was generated by helm-schema due to new required lines
We were creating a sub schema for something and we used helm-schema to create it. In a recent change every field gets a "required": [] added to it.
If using the sub schema as a $ref then you get an unmarshalling error since an empty array is not a BoolOrArrayOfString.
I think maybe there's a couple of problems there but not sure:
- Should
requiredbe getting added to anything except anobject? It seems to me it's supposed to be on objects which havepropertiesonly. - I don't entirely understand the unmarshaling error, but was thinking it gets solved either by using a byte array, reflection, or generics.
Hi snuggie12, thanks for your report. I'll try to get rid of these empty required fields....they weren't added intentional
Should be fixed in #79