code: public static SchemaObjectBuilder schemaObjectFrom(Class<?> from) {
          String jsonType = jsonType(from);
          return schemaObject()
              .withType(jsonType)
              .withFormat(jsonFormat(from))
              .withNullable(!from.isPrimitive())
              .withItems(itemsFor(from, "array".equals(jsonType)));
      }
docs: Creates a builder for a {@link SchemaObject} with the type and format based on the given class
  @param from Type type to build from, e.g. if the type is <code>String.class</code> then the <code>type</code> will
  be set as <code>string</code>.
  @return A new builder