Skip to main content

make_required

Function make_required 

Source
pub fn make_required(field: &mut Field, _schema: &Typespace)
Expand description

Makes a field required in the schema.

  • std::option::Option<T> → required T
  • reflectapi::Option<T> → required std::option::Option<T> (removes the “undefined” state, keeps nullable)
  • Other types → marks the field as required without changing the type