func ValidateSchema(schema string) error {
	switch schema {
	// ignore http/https schemas.
	case CharmStore.String(), CharmHub.String(), Local.String():
		return nil
	}
	return errors.NotValidf("schema %q", schema)
}
// ValidateSchema returns an error if the schema is invalid.
//
// Valid schemas for the URL are:
// - cs: charm store
// - ch: charm hub
// - local: local file
//
// http and https are not valid schemas, as they compiled to V1 charm URLs.
ValidateSchema returns an error if the schema is invalid.

Valid schemas for the URL are:
- cs: charm store
- ch: charm hub
- local: local file

http and https are not valid schemas, as they compiled to V1 charm URLs.
// ValidateSchema returns an error if the schema is invalid . // // Valid schemas for the URL are : // - cs : charm store // - ch : charm hub // - local : local file // // http and https are not valid schemas as they compiled to V1 charm URLs .
func ValidateSchema(schema string) error {
	switch schema {
	case CharmStore.String(), CharmHub.String(), Local.String():
		return nil
	}
	return errors.NotValidf("schema %q", schema)
}
func ValidateSchema ( schema string ) error { switch schema { case CharmStore . String ( ) , CharmHub . String ( ) , Local . String ( ) : return nil } return errors . NotValidf ( " " , schema ) }
ValidateSchema returns an error if the schema is invalid.
ValidateSchema returns an error if the schema is invalid .
// ignore http/https schemas.