Comments (2)
Hi there @Daniel-Vetter-Coverwhale this is currently intentional! This config just enforces the use of pydantic v2, so it's imports become import pydantic.v1 as pydantic
as opposed to import pydantic
for V1 or the conditional import we currently have if no config is specified.
if IS_PYDANTIC_V2:
import pydantic.v1 as pydantic_v1 # type: ignore # nopycln: import
else:
import pydantic as pydantic_v1 # type: ignore # nopycln: import
We plan to add support for pydantic v2 outright, as opposed to levaraging this conditional import, however that's still around a month+ out! I'll keep this open to update you once that's live.
from fern.
Related Issues (20)
- [Bug] Inconsistencies between Fern Definition availability and x-fern-availability extension HOT 2
- [Bug] fern-generate --docs --preview output shows production url HOT 1
- [Bug] Colon's in Meta Tags Break Formatting in Docs HOT 2
- [Bug] TypeScript generator docs list wrong latest version HOT 2
- [Bug] fernapi/fern-typescript-browser-sdk does not generate project files HOT 4
- [Bug] Using `require` to import `node-fetch` breaks when output is ESM HOT 1
- [Feature] Support OpenAPI3 "style" parameters in SDK generators HOT 1
- [Fern's Documentation] Update "Publish a Java SDK to Maven Central" Registration Process HOT 1
- [Bug] PackageNotFoundError when getting the version of the current package HOT 8
- [Feature] How to remove a generated doc url from my account?
- [Bug] Color of custom icons in Callout component HOT 1
- [Bug] Incorrect Sizing on Custom Icons on Callout Component
- [Language Request] Kotlin HOT 2
- [Bug] Frustrating error message when running fern generate --docs
- [Feature] Don't require login or PostHog telemetry in CLI
- [Bug] ts-morph exception using PayPal OpenAPI spec
- [Bug] trailing slashes not preserved in OpenAPI Parser
- [Fern's Documentation] SDK generator options missing from documentation HOT 3
- [Fern's Documentation] How to set user-agent string in generated SDKs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fern.