code: func (s *JSONSchema) JSON() ([]byte, error) {
  	if s.Ref == "" {
  		s.Schema = SchemaRef
  	}
  	return json.Marshal(s)
  }
docs: // JSON serializes the schema into JSON.
  // It makes sure the "$schema" standard field is set if needed prior to delegating to the standard
  // JSON marshaler.