# OpenAPISpec

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec)

OpenAPI Model that removes mis-formatted parts of the spec.

## Signature

```python
OpenAPISpec()
```

## Extends

- `OpenAPI`

## Properties

- `openapi`
- `base_url`

## Methods

- [`get_referenced_schema()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_referenced_schema)
- [`get_schema()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_schema)
- [`parse_obj()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/parse_obj)
- [`from_spec_dict()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/from_spec_dict)
- [`from_text()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/from_text)
- [`from_file()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/from_file)
- [`from_url()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/from_url)
- [`get_methods_for_path()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_methods_for_path)
- [`get_parameters_for_path()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_parameters_for_path)
- [`get_operation()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_operation)
- [`get_parameters_for_operation()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_parameters_for_operation)
- [`get_request_body_for_operation()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_request_body_for_operation)
- [`get_cleaned_operation_id()`](https://reference.langchain.com/python/langchain-community/utilities/openapi/OpenAPISpec/get_cleaned_operation_id)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/utilities/openapi.py#L59)