// GetSubjectCompatibilityLevel returns the compatibility level of a specific subject(schema) name.
GetSubjectCompatibilityLevel returns the compatibility level of a specific subject(schema) name.
// GetSubjectCompatibilityLevel returns the compatibility level of a specific subject ( schema ) name .
func (c *Client) GetSubjectCompatibilityLevel(subject string) (level CompatibilityLevel, err error) {
	if subject == "" {
		err = errRequired("subject")
		return
	}
	path := fmt.Sprintf(subjectCompatibilityLevelPath, subject)
	resp, respErr := c.Do(http.MethodGet, path, "", nil, schemaAPIOption)
	if respErr != nil {
		err = respErr
		return
	}
	var levelReq compatibilityOnlyJSON
	err = c.ReadJSON(resp, &levelReq)
	level = CompatibilityLevel(levelReq.Compatibility)
	return
}
func ( c * Client ) GetSubjectCompatibilityLevel ( subject string ) ( level CompatibilityLevel , err error ) { if subject == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( subjectCompatibilityLevelPath , subject ) resp , respErr := c . Do ( http . MethodGet , path , " " , nil , schemaAPIOption ) if respErr != nil { err = respErr return } var levelReq compatibilityOnlyJSON err = c . ReadJSON ( resp , & levelReq ) level = CompatibilityLevel ( levelReq . Compatibility ) return }
GetSubjectCompatibilityLevel returns the compatibility level of a specific subject(schema) name.
GetSubjectCompatibilityLevel returns the compatibility level of a specific subject ( schema ) name .
// # Get compatibility level of a subject // GET /api/proxy-sr/config/(string: subject)