func ValidateBindingPricing(pricing string) error {
	if len(pricing) == 0 {
		return sdkerrors.Wrap(ErrInvalidPricing, "pricing missing")
	}
	if err := validateDocument([]byte(PricingSchema), pricing); err != nil {
		return sdkerrors.Wrap(ErrInvalidPricing, err.Error())
	}
	return nil
}
ValidateBindingPricing validates the given pricing against the Pricing JSON Schema
package types
import (
	"encoding/json"
	"errors"
	"fmt"
	"github.com/xeipuuv/gojsonschema"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
const PATH_BODY = "body"
type ServiceSchemas struct {
	Input  map[string]interface{} `json:"input"`
	Output map[string]interface{} `json:"output"`
}
func ValidateServiceSchemas(schemas string) error {
	if len(schemas) == 0 {
		return sdkerrors.Wrap(ErrInvalidSchemas, "schemas missing")
	}
	svcSchemas, err := parseServiceSchemas(schemas)
	if err != nil {
		return err
	}
	if err := validateInputSchema(svcSchemas.Input); err != nil {
		return err
	}
	if err := validateOutputSchema(svcSchemas.Output); err != nil {
		return err
	}
	return nil
}