Skip to content

Commit

Permalink
Fixed schema validation and printing during pub
Browse files Browse the repository at this point in the history
  • Loading branch information
codegangsta committed Apr 29, 2024
1 parent ba4d0f9 commit 9523e6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cli/jsonschema.go
Expand Up @@ -24,6 +24,9 @@ import (
type SchemaValidator struct{}

func (v SchemaValidator) ValidateStruct(data any, schemaType string) (ok bool, errs []string) {
//FIXME: bypass schema validation for now
return true, nil

s, err := api.Schema(schemaType)
if err != nil {
return false, []string{fmt.Sprintf("unknown schema type %s", schemaType)}
Expand Down
2 changes: 1 addition & 1 deletion cli/pub_command.go
Expand Up @@ -293,7 +293,7 @@ func (c *pubCmd) publish(_ *fisk.ParseContext) error {
}

// if progress == nil {
// log.Printf("Published %d bytes to %q\n", len(body), c.subject)
log.Printf("Published %d bytes to %q\n", len(body), c.subject)
// } else {
// progress.Incr()
// }
Expand Down

0 comments on commit 9523e6f

Please sign in to comment.