Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use embed instead of packr #157

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 29, 2024

  1. Support struct arguments with all optional fields

    Transaction functions with struct argument that have all their fields as
    JSON optional causes a parsing error on the chaincode metadata:
    
        components.schemas.Args.required: Array must have at least 1 items
    
    Having no required fields causes the `required` property to be an empty
    array. Draft 4 of the JSON schema specification requires string arrays
    to contain at least one element, so an error occurs.
    
    This change modifies the JSON description of the ObjectMetata `Required`
    property so that it is omitted when empty.
    
    Signed-off-by: Mark S. Lewis <[email protected]>
    bestbeforetoday committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    ac2850b View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2024

  1. Use embed instead of packr

    Packr is deprecated and no longer maintained. This change replaces use
    of packr with the embed package from the Go standard library.
    
    Signed-off-by: Mark S. Lewis <[email protected]>
    bestbeforetoday committed Nov 30, 2024
    Configuration menu
    Copy the full SHA
    172a439 View commit details
    Browse the repository at this point in the history