Import Data Schemas, e.g. from OpenAPI, in Jupyter
Edit pageLast modified: 20 May 2025warning
OpenAPI 3.0.0 schema support is marked as experimental. It might change or be removed in the future.
Similar to importing OpenAPI Data Schemas in Gradle projects, you can also do this in Jupyter Notebooks. This requires enabling the enableExperimentalOpenApi
setting, like:
There is only a slight difference in notation:
Import the schema using any path (String
), URL
, or File
:
and then from the next cell you run and onwards, you can call, for example:
So, very similar indeed!
(Note: The type of PetStore
will be generated as PetStoreDataSchema
, but this doesn't affect the way you can use it.)