Skip to content

Commit

Permalink
feat: add tekartik_app_json_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Oct 23, 2024
1 parent deef236 commit 494f88c
Show file tree
Hide file tree
Showing 18 changed files with 941 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ updates:
directory: "app"
schedule:
interval: "monthly"
- package-ecosystem: "pub"
directory: "app_archive"
schedule:
interval: "monthly"
- package-ecosystem: "pub"
directory: "app_bloc"
schedule:
Expand Down Expand Up @@ -45,6 +49,10 @@ updates:
directory: "app_intl"
schedule:
interval: "monthly"
- package-ecosystem: "pub"
directory: "app_json_schema"
schedule:
interval: "monthly"
- package-ecosystem: "pub"
directory: "app_lints"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion app_cv_firestore/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Setup

pubspect.yaml:
pubspec.yaml:

```yaml
tekartik_app_cv_firestore:
Expand Down
2 changes: 1 addition & 1 deletion app_cv_sembast/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Setup

pubspect.yaml:
pubspec.yaml:

```yaml
tekartik_app_cv_sembast:
Expand Down
2 changes: 1 addition & 1 deletion app_date/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Setup

pubspect.yaml:
pubspec.yaml:

```yaml
tekartik_app_date:
Expand Down
7 changes: 7 additions & 0 deletions app_json_schema/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/

# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
11 changes: 11 additions & 0 deletions app_json_schema/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Setup

pubspec.yaml:

```yaml
tekartik_app_json_schema:
git:
url: https://github.com/tekartik/app_common_utils.dart
ref: dart3a
path: app_json_schema
```
1 change: 1 addition & 0 deletions app_json_schema/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:tekartik_lints/package.yaml
13 changes: 13 additions & 0 deletions app_json_schema/lib/cv_json_schema.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export 'package:cv/cv_json.dart';
export 'json_schema.dart';
export 'src/cv_json_schema.dart'
show
CvJsonSchema,
CvJsonSchemaBool,
CvJsonSchemaExt,
CvJsonSchemaInt,
CvJsonSchemaNum,
CvJsonSchemaString,
CvJsonSchemaEnumString,
CvJsonSchemaList,
CvJsonSchemaMap;
2 changes: 2 additions & 0 deletions app_json_schema/lib/json_schema.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export 'src/constant.dart';
export 'src/json_schema.dart' show JsonSchema, JsonSchemaType;
14 changes: 14 additions & 0 deletions app_json_schema/lib/src/constant.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/// String enum format
const jsonSchemaFormatEnum = 'enum';

/// Int32
const jsonSchemaFormatInt32 = 'int32';

/// Int64
const jsonSchemaFormatInt64 = 'int64';

/// Float
const jsonSchemaFormatFloat = 'float';

/// Double
const jsonSchemaFormatDouble = 'double';
Loading

0 comments on commit 494f88c

Please sign in to comment.