Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions docs/cli-reference/base-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ For consistent cross-platform behavior, explicitly specify `--encoding utf-8`.

1. :material-arrow-left: `--encoding` - the option documented here

??? example "Input Schema"
??? example "Examples"

**Input Schema:**

```json
{
Expand All @@ -51,7 +53,7 @@ For consistent cross-platform behavior, explicitly specify `--encoding utf-8`.
}
```

??? example "Output"
**Output:**

```python
# generated by datamodel-codegen:
Expand Down Expand Up @@ -88,7 +90,9 @@ schemas. Required unless using `--url` to fetch schema from a URL.

1. :material-arrow-left: `--input` - the option documented here

??? example "Input Schema"
??? example "Examples"

**Input Schema:**

```json
{
Expand All @@ -109,7 +113,7 @@ schemas. Required unless using `--url` to fetch schema from a URL.
}
```

??? example "Output"
**Output:**

```python
# generated by datamodel-codegen:
Expand Down Expand Up @@ -147,7 +151,9 @@ json, yaml, csv, graphql.

1. :material-arrow-left: `--input-file-type` - the option documented here

??? example "Input Schema"
??? example "Examples"

**Input Schema:**

```json
{
Expand All @@ -158,7 +164,7 @@ json, yaml, csv, graphql.
}
```

??? example "Output"
**Output:**

```python
# generated by datamodel-codegen:
Expand Down Expand Up @@ -198,7 +204,9 @@ is written to stdout.

1. :material-arrow-left: `--output` - the option documented here

??? example "Input Schema"
??? example "Examples"

**Input Schema:**

```json
{
Expand All @@ -219,7 +227,7 @@ is written to stdout.
}
```

??? example "Output"
**Output:**

```python
# generated by datamodel-codegen:
Expand Down Expand Up @@ -258,7 +266,9 @@ Format: `HeaderName:HeaderValue`.

1. :material-arrow-left: `--url` - the option documented here

??? example "Input Schema"
??? example "Examples"

**Input Schema:**

```json
{
Expand All @@ -279,7 +289,7 @@ Format: `HeaderName:HeaderValue`.
}
```

??? example "Output"
**Output:**

```python
# generated by datamodel-codegen:
Expand Down
Loading
Loading