for (ResourceMethod resource : resourceList) { for (ResourceMethodMediaType mediaType : resource.getApplicableMediaTypes()) { for (String applicableType : findAllKnownTypesAcceptableTo(mediaType)) { ResourceMethodMediaType type = supported.get(applicableType); if (type == null) {
model.setVariable("title", title); model.setVariable("uniqueContentTypes", new UniqueContentTypesMethod()); model.setVariable("schemaForNamespace", new SchemaForNamespaceMethod(model.getNamespacesToSchemas())); model.setVariable(JsonSchemaForType.NAME, new JsonSchemaForType(model));