Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Chaves (0.36 sec)

  1. docs/pt/docs/tutorial/body-nested-models.md

    Você também pode declarar um corpo como um `dict` com chaves de algum tipo e valores de outro tipo.
    
    Sem ter que saber de antemão quais são os nomes de campos/atributos válidos (como seria o caso dos modelos Pydantic).
    
    Isso seria útil se você deseja receber chaves que ainda não conhece.
    
    ---
    
    Outro caso útil é quando você deseja ter chaves de outro tipo, por exemplo, `int`.
    
    É isso que vamos ver aqui.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/body-multiple-params.md

    Por exemplo, extendendo o modelo anterior, você poder decidir por ter uma outra chave `importance` no mesmo corpo, além de `item` e `user`.
    
    Se você declará-lo como é, porque é um valor singular, o **FastAPI** assumirá que se trata de um parâmetro de consulta.
    
    Mas você pode instruir o **FastAPI** para tratá-lo como outra chave do corpo usando `Body`:
    
    === "Python 3.8+"
    
        ```Python hl_lines="22"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                    new SiteLifecycle(),
                    new WrapperLifecycle());
            // validate lifecycle
            for (Lifecycle lifecycle : this) {
                Set<String> set = new HashSet<>();
                lifecycle.phases().forEach(phase -> {
                    if (!set.add(phase.name())) {
                        throw new IllegalArgumentException(
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

         *
         * @return the unique identifier for this lifecycle
         */
        @Override
        String id();
    
        /**
         * Collection of phases for this lifecycle
         */
        Collection<Phase> phases();
    
        /**
         * Pre-ordered list of phases.
         * If not provided, a default order will be computed.
         */
        default Optional<List<String>> orderedPhases() {
            return Optional.empty();
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

            this.id = lifecycle.id();
            this.phases = registry.computePhases(lifecycle);
            this.defaultPhases = getDefaultPhases(lifecycle);
        }
    
        // <lifecycle>
        //   <id>clean</id>
        //   <phases>
        //     <phase>pre-clean</phase>
        //     <phase>clean</phase>
        //     <phase>post-clean</phase>
        //   </phases>
        //   <default-phases>
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java

            private final String name;
            private final List<Plugin> plugins;
            private final List<Lifecycle.Phase> phases;
    
            DefaultPhase(String name, List<Plugin> plugins, List<Lifecycle.Phase> phases) {
                this.name = name;
                this.plugins = plugins;
                this.phases = phases;
            }
    
            @Override
            public String name() {
                return name;
            }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java

                    PACKAGE.getPhase(),
                    "BEER",
                    INSTALL.getPhase());
    
            // The two phases below are really for future expansion, some would say they lack a drink
            // The point being that they do not really have to match the "real" stuff,
            List<String> stubCleanCycle = Arrays.asList(PRE_CLEAN.getPhase(), CLEAN.getPhase(), POST_CLEAN.getPhase());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Function.java

      T apply(@ParametricNullness F input);
    
      /**
       * <i>May</i> return {@code true} if {@code object} is a {@code Function} that behaves identically
       * to this function.
       *
       * <p><b>Warning: do not depend</b> on the behavior of this method.
       *
       * <p>Historically, {@code Function} instances in this library have implemented this method to
       * recognize certain cases where distinct {@code Function} instances would in fact behave
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

         *
         * @param phase
         * @return
         */
        public Lifecycle get(String phase) {
            return getPhaseToLifecycleMap().get(phase);
        }
    
        /**
         * We use this to map all phases to the lifecycle that contains it. This is used so that a user can specify the
         * phase they want to execute and we can easily determine what lifecycle we need to run.
         *
         * @return A map of lifecycles, indexed on id
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  10. .github/workflows/multipart/migrate.sh

    docker-compose -f docker-compose-site1.yaml up -d
    docker-compose -f docker-compose-site2.yaml up -d
    
    ./mc ready site1/
    ./mc ready site2/
    
    for i in $(seq 1 10); do
    	# mc admin heal -r --remove when used against a LB endpoint
    	# behaves flaky, let this run 10 times before giving up
    	./mc admin heal -r --remove --json site1/ 2>&1 >/dev/null
    	./mc admin heal -r --remove --json site2/ 2>&1 >/dev/null
    done
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 15:54:24 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top