Skip to content

Commit

Permalink
Replace json_mapping with JSON::Serializable (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
schodevio authored Apr 12, 2023
1 parent 33ff2e1 commit d7333fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lib/
/amber
/tmp
shard.lock
.crystal-version
package-lock.json
node_modules
/myapp
Expand Down
4 changes: 0 additions & 4 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ dependencies:
github: crystal-lang/yaml_mapping.cr
version: ~> 0.1.0

json_mapping:
github: crystal-lang/json_mapping.cr
version: ~> 0.1.0

development_dependencies:
ameba:
github: crystal-ameba/ameba
Expand Down
17 changes: 8 additions & 9 deletions spec/support/helpers/cli_helper.cr
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
require "file_utils"
require "json"
require "json_mapping"

class RouteJSON
JSON.mapping({
verb: String,
controller: String,
action: String,
pipeline: String,
scope: String,
uri_pattern: String,
})
include JSON::Serializable

property action : String
property controller : String
property pipeline : String
property scope : String
property uri_pattern : String
property verb : String
end

module CLIHelper
Expand Down

0 comments on commit d7333fc

Please sign in to comment.