Git Product home page Git Product logo

htte's People

Contributors

sigoden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

htte's Issues

Improve !@object

use suffix '?' to mark value is optional.

req:
  body:
    k1: !@exist
    k2?: !@exist

k2 with ? means k2 is optional.

引入 Mock

新建一款插件其使用 mockjs 生成假数据

- describe: mock data
  req:
    body:
      email: !$mock '@EMAIL'
      url: !$mock "@URL('http', 'example.com')"
      arr: !$moco
         'list|1-10': 
           -  'id|+1': 1

提供 XML 编码器

在 Restful API 数据交换格式中 XML 也很常见,但 Htte 目前只支持 JSON。可以支持 XML 编码吗?

Improve `@arraylike`

@arraylike is able to verify the element at a index or the length of array. It can be more powerful. Add '?' to check an element exists, Add '*' to check each element pass the rule.

a: [1, 2, 3]

We check 2 is existed in array a

a: !@arraylike
  ?: 2

We check each element of array a is large than 0

a: !@arraylike
  *: !@compare
    op: gt
    value: 0

进入子层级时重复打印父层级描述

- describe: root
  units:
    - describe: g0
      units:
        - describe: g0-0
    - describe: g1
      units:
        - describe: g1-0

打印描述现在是这样的

root
  g0
    1) g0-0
root
  g1
    2) g1-0

其实应该是这样的

root
  g0
    1) g0-0
  g1
    2) g1-0

测试 g1-0 不应该重复打印 root

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.