Skip to content

Commit

Permalink
Fix property name
Browse files Browse the repository at this point in the history
  • Loading branch information
monstermichl committed Oct 31, 2024
1 parent c1c93fb commit de7278e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ languages:

properties:
- type: string
name: opener
name: greeting
value: Hello World

# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -72,7 +72,7 @@ ninja-bear -c readme-config.yaml -d
### Output (readme-config.ts)
```typescript
export const ReadmeConfig = {
OPENER: 'Hello World',
GREETING: 'Hello World',
} as const;
```

Expand All @@ -82,7 +82,7 @@ from dataclasses import dataclass

@dataclass(frozen=True)
class ReadmeConfig:
OPENER = 'Hello World'
GREETING = 'Hello World'
```

### Output (readme_config.h)
Expand All @@ -91,7 +91,7 @@ class ReadmeConfig:
#define README_CONFIG_H

const struct {
char Opener[11];
char Greeting[11];
} ReadmeConfig = {
"Hello Mars",
};
Expand Down
2 changes: 1 addition & 1 deletion example/readme-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ languages:

properties:
- type: string
name: opener
name: greeting
value: Hello World

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit de7278e

Please sign in to comment.