func ValidateRequestInput(input string) error {
	if err := validateDocument([]byte(InputSchema), input); err != nil {
		return sdkerrors.Wrap(ErrInvalidRequestInput, err.Error())
	}
	return nil
}
ValidateRequestInput validates the request input against the input 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
}
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
}