Comments (1)
Thinking about this more... Maybe we can just do deep nested checks? For example, I want to know if the response has a key with a value that's a massive object, but I only need to verify that one of the key/values in that massive object exist...
# {user: {username: "...", slug: "...", created_at: ..., updated_at: ...., preferences: {theme: "dark", size: "large"}}}
response.should send_json(200, user: {username: "...", preferences: {theme: "dark"}})
This would then let me just do a quick few spot checks on an object instead of trying to worry about the exact time on created_at, or building out each object in a sub array and so on.
from lucky.
Related Issues (20)
- Add the compile time to the watcher in development
- Add format flag to `lucky routes` for outputting alternate formats
- Adding a strip_tags helper with allow list capabilities
- Add native ECR support
- Add distance_of_time_in_words that takes a Time::Span
- Add Date header to responses
- Create handler to mutate param key names
- Action based rate limiting HOT 2
- Improve the error output when newbie user forget settings LUCKY_ENV to production.
- Compile error using Crystal nightly HOT 1
- gen.action.browser doesn't mention the --with-page flag
- Changing the DEV_PORT doesn't update the watcher reload_port shown in terminal HOT 12
- Compile time should reset when recompiling
- Building a route with array params doesn't work HOT 1
- redirect_back not work as expected as previous_url HOT 4
- Expected Hash for #[]?(key : String), not Array(JSON::Any)
- File.readable? is deprecated starting Crystal 1.13
- build lucky project use Crystal 1.13.0-dev [4dce0d594]) cause 'strict_transport_security' error when running lucky. HOT 1
- Couldn't get the correct param value when work with htmx + checkbox when return two same name attribute's value.
- Update Exception Page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucky.